Signature
formatTimecodeInput(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 a `TimecodeInput` value.
Examples
formatTimecodeInput(90.5); // "1:30.50"formatTimecodeInput(90.5, { frameRate: 24 }); // "00:01:30:12"formatTimecodeInput(60.06, { frameRate: { numerator: 30000, denominator: 1001 }, dropFrame: true,}); // "00:01:00;02"