Function formatTimeCodeSeconds

  • Format seconds to TimeCode object Input time base is always 1:1 since it expects seconds as input

    Note: Max 15 digits accuracy (double precision float64), e.g.

    • 10^6 seconds can have 10^9 decimals (nanosecond) precision
    • 10^9 seconds can have 10^6 decimals (microsecond) precision
    • 10^12 seconds can have 10^3 decimals (millisecond) precision

    Returns

    A TimeCode instance

    Parameters

    • seconds: string | number

      With or without decimals ("." and "," are both interpreted as decimal)

    • Optional options: FormatTimeCodeSecondsOptions

      Options for how to format the seconds to a TimeCode

    Returns TimeCode