Signature
formatTimecode(seconds: number, options: TimecodeFormatOptions = {}): stringParameters
| Name | Type | Description |
|---|---|---|
| seconds | number | Decimal seconds to format. |
| options | TimecodeFormatOptions | Optional output shape and frame-rate settings. |
Returns
string
Timecode text suitable for timeline UI.
Examples
formatTimecode(90.5); // "1:30.50"formatTimecode(90.5, { frameRate: 24 }); // "00:01:30:12"formatTimecode(60.06, { frameRate: { numerator: 30000, denominator: 1001 }, dropFrame: true }); // "00:01:00;02"