Millwork
    Preparing search index...

    Variable durationConst

    duration: Codec<
        string
        | number,
        Temporal.Duration,
        { unit?: "iso" | "s" | "ms" } | undefined,
    > = ...

    ISO 8601 or a number ↔ Temporal.Duration. The unit option is 'iso' (default), 's' or 'ms'. Each unit is kept on the wire. equals compares years, months, weeks and days per unit and the rest by length: PT1H equals PT60M, but P1M is not P30D.