Function

formatSeconds

Formats a rational timeline time as decimal seconds.

Signature

Type Definition
formatSeconds(t: RationalTime, decimals: number = 2): string

Parameters

NameTypeDescription
tRationalTimeRational timeline time to format.
decimalsnumberNumber of digits to include after the decimal point.

Returns

string

Seconds string rounded to the requested precision.