Module time

Source
Expand description

Human-readable formats for times and durations.

Constants§

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_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.