Home
last modified time | relevance | path

Searched refs:parse_rfc3339 (Results 1 – 3 of 3) sorted by relevance

/third_party/rust/crates/humantime/src/
Ddate.rs85 pub fn parse_rfc3339(s: &str) -> Result<SystemTime, Error> { in parse_rfc3339() function
377 use super::{parse_rfc3339, parse_rfc3339_weak, format_rfc3339};
393 assert_eq!(parse_rfc3339("2038-01-19T03:14:08Z").unwrap_err(), in year_after_2038_fails_gracefully()
395 assert_eq!(parse_rfc3339("9999-12-31T23:59:59Z").unwrap_err(), in year_after_2038_fails_gracefully()
401 assert_eq!(parse_rfc3339("1970-01-01T00:00:00Z").unwrap(), in smoke_tests_parse()
403 assert_eq!(parse_rfc3339("1970-01-01T00:00:01Z").unwrap(), in smoke_tests_parse()
405 assert_eq!(parse_rfc3339("2018-02-13T23:08:32Z").unwrap(), in smoke_tests_parse()
407 assert_eq!(parse_rfc3339("2012-01-01T00:00:00Z").unwrap(), in smoke_tests_parse()
474 assert_eq!(parse_rfc3339(&max::TIMESTAMP).unwrap(), max); in upper_bound()
480 assert_eq!(parse_rfc3339("2016-12-31T23:59:60Z").unwrap(), in leap_second()
[all …]
Dlib.rs29 pub use self::date::{parse_rfc3339, parse_rfc3339_weak, Error as TimestampError};
/third_party/rust/crates/humantime/benches/
Ddatetime_parse.rs5 use humantime::parse_rfc3339;
10 parse_rfc3339("2018-02-13T23:08:32Z").unwrap() in rfc3339_humantime_seconds()
24 parse_rfc3339("2018-02-13T23:08:32.123Z").unwrap() in rfc3339_humantime_millis()
38 parse_rfc3339("2018-02-13T23:08:32.123456983Z").unwrap() in rfc3339_humantime_nanos()