Skip to main content

days

days(value: Integer) : Duration

Obtains a Duration representing the given number of days. For example, days(3) returns a Duration that represents three days. The value can be negative. For example, days(-2) returns a Duration that represents negative two days.

This function will raise an error if the absolute value of the input is greater than 106751991167300.

See also

Functions

Types