Skip to main content

minutes

minutes(value: Number) : Duration

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

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

See also

Functions

Types