Formattimespan
Formattimespan is a function or utility used in time-processing libraries to convert a time duration into a human-readable string according to a specified pattern. It is designed to handle a range of input representations, such as seconds, milliseconds, or language- or library-specific duration objects, and to produce stable, portable textual representations of elapsed time.
The primary purpose of formattimespan is to present durations in a format that is easy to read
Common formats include full or verbose styles (for example, "1 day, 2 hours, 3 minutes"), short or
Usage typically involves passing a duration value along with a desired format and locale. For instance, formattimespan(90061,
See also: Time span, Duration, Time formatting, ISO 8601 duration.