Abs
Returns the absolute value of the given time.Duration value.
Hours
Returns the time.Duration value as a floating point number of hours.
Microseconds
Returns the time.Duration value as an integer microsecond count.
Milliseconds
Returns the time.Duration value as an integer millisecond count.
Minutes
Returns the time.Duration value as a floating point number of minutes.
Nanoseconds
Returns the time.Duration value as an integer nanosecond count.
Round
Returns the result of rounding DURATION1 to the nearest multiple of DURATION2.
Seconds
Returns the time.Duration value as a floating point number of seconds.
Truncate
Returns the result of rounding DURATION1 toward zero to a multiple of DURATION2.