en | fr

The Timing class


This class contains some common functions that are related to timing.


time

Converts the given number of seconds to a human readable string like “hours:minutes:seconds”.

Parameters

Returns String


fromISO8601

Returns a total duration in seconds given an ISO 8601 time string.

Parameters

Returns Number


relativeTime

Returns a human readable sentence to represent the elapsed time since the given timestamp.

Parameters

Returns String


currentTimestamp

Returns the current timestamp in seconds.

Returns Number