Durations are specified with positive integers and unit specifiers. Unit specifiers include the following:
ms
: millisecondss
: secondsm
: minutesh
: hoursd
: daysw
: weeks
An duration of 1 week is specified as 1w
.
A duration of 1 week, 1 day, 1 hour, 1 minute, and 1 second
is specified as 1w1d1h1m1s
.
Not all properties taking a duration allow all unit specifiers. For example, milliseconds are not allowed if durations smaller than one second are not permitted.
Some properties limit minimum or maximum durations.
An unlimited duration is specified using
unlimited
(recommended for readability) or -1
.