TolliumUser::FormatTimespan (open)
Format a given time span
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
STRING FUNCTION FormatTimespan(INTEGER64 days, INTEGER64 msecs, STRING precision)
Parameters
INTEGER64 days
Number of days in the time span
INTEGER64 msecs
Number of milliseconds, negative values or values larger than the # of msecs in a days are acceptable
STRING precision
Use either "milliseconds", "seconds" or "minutes" for a long text ("2 hours, 5 minutes..")) or "short-milliseconds", "short-seconds", "short-minutes" for numeric only ("2:15")
Return value
STRING
The formatted time span (i.e. number of years, months, weeks, days, hours, etc.)