mise API - v0.0.0
    Preparing search index...

    Function duration_parse

    • Reads a duration the way an operator writes one.

      Parameters

      • text: string

        A duration such as 30s, 20m, 2h, 250ms, or bare seconds.

      Returns number | null

      Milliseconds, or null when the text is not a duration.