parse_rfc3339_time

Function parse_rfc3339_time 

Source
pub fn parse_rfc3339_time(inp: &str) -> Result<PreciseLocalTime, Error<'_>>
Expand description

Parse a RFC3339 formatted time string.

ยงExample

let dt = parse_rfc3339_time("09:08:58.763072").unwrap();
assert_eq!(dt.hour, Hour::new(9).unwrap());
assert_eq!(dt.minute, Minute::new(8).unwrap());
assert_eq!(dt.second, Second::new(58).unwrap());
assert_eq!(dt.nanosecond, Nanosecond::new(763072000).unwrap());