Millwork
    Preparing search index...

    Variable durationConst

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

    ISO 8601 or a number ↔ a luxon 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.