getTimeComponents
returns a relative time in human readable components; weeks, days, hours, minutes, seconds and milliseconds
Syntax
getTimeComponents(seconds)
Returns
returns (object) with the time in human readable components
Parameters
- seconds (double)
- the relative duration to convert in seconds
Usage
echo(objectToString(getTimeComponents(3600.123)));
returns
{
"weeks": 0,
"days": 0,
"hours": 1,
"min": 0,
"sec": 0,
"ms": 123
}