stringForTime
Formats the given time duration value (in milliseconds) as a time string in one of the following formats:
- HH:MM:SS where the timeframe is greater than 1 hour
- MM:SS where the timeframe is less than an hour
- M:SS where the timeframe is less than ten minutes
Return
the formatted string expression for the given time duration
Parameters
milliseconds
the time duration to format, in milliseconds