Skip to main content

parse_timestamp_legacy

Function parse_timestamp_legacy 

Source
pub fn parse_timestamp_legacy(
    s: &str,
) -> Result<CheckedTimestamp<NaiveDateTime>, ParseError>
Expand description

Parses a NaiveDateTime from s with the frozen legacy year-month-day interpretation of ambiguous dates.

NOTE: This exists solely to keep the storage source cast CastStringToTimestamp evaluation-stable across releases (see the stability contract in mz_storage_types::sources::casts). Use parse_timestamp everywhere else.