Function repr::adt::datetime::tokenize_time_str[][src]

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.

Warning

  • Any sequence of numeric characters following a decimal that exceeds 9 charactrers 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. %.