Function mz_repr::adt::datetime::expected_dur_like_tokens

source ·
fn expected_dur_like_tokens(
    from: DateTimeField,
) -> Result<&'static [TimeStrToken], String>
Expand description

Get the expected TimeStrTokens to parse SQL Standard time-like DateTimeFields, i.e. HOUR, MINUTE, SECOND. This is used for INTERVAL, TIMESTAMP, and TIME.

§Errors

  • If from is YEAR, MONTH, or DAY.