Millwork
    Preparing search index...

    Variable durationConst

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

    ISO 8601 or a number ↔ a frozen date-fns Duration object. The unit option is 'iso' (default), 's' or 'ms'. Parts of a second go in seconds. equals compares years, months, weeks and days per unit and the rest by length.