Skip to main content

parse_datetime_str

Function parse_datetime_str 

Source
pub fn parse_datetime_str(s: &str) -> Option<i64>
Expand description

Parses a string into a timestamp in milliseconds since the Unix epoch. Returns Some(i64) on success, or None if the string could not be parsed.

Attempts common ISO8601/RFC3339 and custom date/time formats if the time feature is enabled.