Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cueshit/duration.ts>DurationFormat

Convert between different cue sheet / chapter / tracklist formats
Latest
interface DurationFormat
import { type DurationFormat } from "https://deno.land/x/cueshit@v0.7.0/duration.ts";

Specification of a duration format.

Properties

largestUnit: TimeUnit

Largest time unit which is displayed, defaults to hours.

smallestUnit: TimeUnit

Smallest time unit which is displayed, defaults to seconds.

subSecondUnits: number

Total count of units a second is divided into (default: 0).

subSecondSeparator: string

Separate seconds and sub-second units by something else than a dot.

padLargestUnit: boolean

Largest unit should be zero-padded, disabled by default.