mkdays(W;D;HH;MM;SS)

Make a days (interval) value from weeks, days, hours, minutes, and seconds. (Available as of version 20.04)

Syntax

mkdays(W;D;HH;MM;SS)

Input

Argument Type Description
W integer A scalar value or the name of a column containing an integer, the number of weeks.
D integer A scalar value or the name of a column containing an integer, the number of months.
HH integer A scalar value or the name of a column containing an integer, the number of hours.
MM integer A scalar value or the name of a column containing an integer, the number of minutes.
SS integer or decimal A scalar value or the name of a column containing an integer or floating-point value, the number of seconds (and fractional sections).

Any value(s) may be omitted or NA, in which case it will default to 0. If no non-NA values are provided, the return value will be NA.

Return Value

Returns a floating-point value, the number of days (and fractional days) in the interval (7×W+D+the fraction of a day represented by HH hours, MM minutes and SS seconds.).

For more information about date formats, see Dates and time.

If the input values are not in one of the supported formats listed above, the function returns an erroneous or illogical output.