ReadonlyquantityReadonlyunitStatic ReadonlyDAYS_The number of days in one week.
Static ReadonlyHOURS_The number of hours in one day.
Static ReadonlyMILLIS_The number of milliseconds in one second.
Static ReadonlyMINUTES_The number of minutes in one hour.
Static ReadonlySECONDS_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.
The string representation of this Duration. e.g. "645 seconds"
StaticdaysReturns a new Duration instance created from the specified number of days.
The number of days.
StatichoursReturns a new Duration instance created from the specified number of hours.
The number of hours.
StaticmillisecondsReturns a new Duration instance created from the specified number of milliseconds.
The number of milliseconds.
StaticminutesReturns a new Duration instance created from the specified number of minutes.
The number of minutes.
StaticsecondsReturns a new Duration instance created from the specified number of seconds.
The number of seconds.
StaticweeksReturns a new Duration instance created from the specified number of weeks.
The number of weeks.
A simple utility class for converting durations between minutes, seconds, and milliseconds.