pub(crate) fn tokenize_time_str(
    value: &str
) -> Result<VecDeque<TimeStrToken>, String>
Expand description

Convert a string from a time-like datatype (INTERVAL, TIMESTAMP/TZ, DATE, and TIME) into Vec<TimeStrToken>.

Warning

  • Any sequence of numeric characters following a decimal that exceeds 9 characters gets truncated to 9 characters, e.g. 0.1234567899 is truncated to 0.123456789.

Errors

  • Any sequence of alphabetic characters cannot be cast into a DateTimeField.
  • Any sequence of numeric characters cannot be cast into an i64.
  • Any non-alpha numeric character cannot be cast into a TimeStrToken, e.g. %.