Member Junction
    Preparing search index...

    UTC-day conversion, arithmetic and the one "is a calendar day" predicate.

    Index

    Constructors

    Methods

    • True for a string that is exactly yyyy-mm-dd and names a calendar day — the form every stored date column of a protocol or unit uses. 2024-02-30, 2024-1-1 and text after the day are refused. The one predicate for "is a day": the row parsers, the shape check and the editors all call it.

      Parameters

      • text: string

      Returns boolean

    • The UTC day a value denotes: a yyyy-mm-dd… string by its date part (a time and zone after it are ignored, as the reference builder reads them), a Date by its UTC date. Null for any other value, for a string without such a date part, and for a date part that names no calendar day (2024-02-30, 2024-13-01), which is never rolled over into another day.

      Parameters

      Returns Date | null