Module time

Module time 

Source
Expand description

Human-readable formats for times and durations.

Constants§

MIN_MS_ONLY_TIME
The minimum amount of time displayed with only seconds and milliseconds (no microseconds).
MIN_SECONDS_ONLY_TIME
The minimum amount of time displayed with only seconds (no milliseconds).

Functions§

duration_short
Returns a human-friendly formatted string for the whole number of seconds in duration.
humantime_microseconds
Returns a human-friendly formatted string for the whole number of microseconds in duration.
humantime_milliseconds
Returns a human-friendly formatted string for the whole number of milliseconds in duration.
humantime_seconds
Returns a human-friendly formatted string for the whole number of seconds in duration.