interval->string

Name

interval->string -- Format an interval into a string.

Type: function

Synopsis

interval->string( dt, string);

Arguments

dt

An instance of <interval>

Return Values

string

An instance of <string>

Description

Returns a string representing the length of the interval. This function chooses units that are appropriate for the length of the interval. For example, 90000 seconds would be rendered as 1.04 days ("1.04 d") whereas 0.9 seconds would be rendered as "900 ms".