Circle V2 API Docs
    Preparing search index...

    Function parsePrecisionDate

    • Build a PrecisionDate from what a source actually gives us.

      Pass date and time separately whenever the source has them separately — LightningStep stores them in two columns — because an absent time states date-only precision outright instead of leaving it to be inferred. value covers the single-string case and is classified by which format list it matches.

      knownZone is the zone a zoneless value is in, when the caller knows; a value carrying its own offset ignores it.

      Returns null only when there was nothing to parse. Input that matched no format comes back with "bare" precision and renders verbatim, so a value the source gave us is never dropped on the floor.

      Parameters

      • input: {
            date?: string | null;
            knownZone?: string | null;
            time?: string | null;
            value?: string | null;
        }

      Returns PrecisionDate | null