Entracte (TypeScript)
    Preparing search index...

    Function parseMinutesOfDay

    • Parse a time-of-day string back to minutes-since-midnight. Accepts both 24h ("14:30") and 12h ("2:30 PM", "2:30pm", "2pm") regardless of the user's clock_format setting — that setting only controls display. Returns null on any invalid input so the caller can reseed the field from the previous value.

      Parameters

      • input: string

      Returns number | null