@metreeca/blue - v0.12.0
    Preparing search index...

    Function duration

    • Creates a shape for ISO 8601 duration values ([-]PnYnMnDTnHnMnS).

      Fixes the datatype to xsd:duration and requires at least one component, so that neither P nor a T designator carrying no time component is admitted. Components are stated in descending order of magnitude, and only seconds take a fraction.

      Type Parameters

      Parameters

      Returns StringShape<{ inferred from <C> }>

      An immutable shape admitting ISO 8601 durations, narrowed to the values the constraints enumerate

      TraceError Where the stated constraints contradict one another