Readonly
quantityReadonly
unitStatic
Readonly
DAYS_The number of days in one week.
Static
Readonly
HOURS_The number of hours in one day.
Static
Readonly
MILLIS_The number of milliseconds in one second.
Static
Readonly
MINUTES_The number of minutes in one hour.
Static
Readonly
SECONDS_The number of seconds in one minute.
Returns the current number of days represented by this Duration
instance.
Returns the current number of hours represented by this Duration
instance.
Returns the current number of milliseconds represented by this Duration
instance.
Returns the current number of minutes represented by this Duration
instance, rounded to the nearest integer
value.
Returns the current number of seconds represented by this Duration
instance, rounded to the nearest integer
value.
Returns the current number of weeks represented by this Duration
instance.
A simple utility class for converting durations between minutes, seconds, and milliseconds.