Lines Matching refs:parse_rfc3339
85 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()
489 assert_eq!(parse_rfc3339(&s).unwrap(), time); in first_731_days()
499 assert_eq!(parse_rfc3339(&s).unwrap(), time); in the_731_consecutive_days()
509 assert_eq!(parse_rfc3339(&s).unwrap(), time); in all_86400_seconds()
521 assert_eq!(parse_rfc3339(&s).unwrap(), time); in random_past()
531 assert_eq!(parse_rfc3339(&s).unwrap(), time); in random_wide_range()
538 assert_eq!(parse_rfc3339("1970-01-01T00:00:00.123Z").unwrap(), in milliseconds()
547 parse_rfc3339("1970-00-01T00:00:00Z").unwrap(); in zero_month()
553 parse_rfc3339("1970-32-01T00:00:00Z").unwrap(); in big_month()
559 parse_rfc3339("1970-01-00T00:00:00Z").unwrap(); in zero_day()
565 parse_rfc3339("1970-12-35T00:00:00Z").unwrap(); in big_day()
571 parse_rfc3339("1970-02-30T00:00:00Z").unwrap(); in big_day2()
577 parse_rfc3339("1970-12-30T00:00:78Z").unwrap(); in big_second()
583 parse_rfc3339("1970-12-30T00:78:00Z").unwrap(); in big_minute()
589 parse_rfc3339("1970-12-30T24:00:00Z").unwrap(); in big_hour()
597 parse_rfc3339(from_utf8(&s).unwrap()).unwrap_err(); in break_data()
605 parse_rfc3339("1970-01-01 00:00:00").unwrap_err(); in weak_smoke_tests()
609 parse_rfc3339("1970-01-01 00:00:00.000123").unwrap_err(); in weak_smoke_tests()
613 parse_rfc3339("1970-01-01T00:00:00.000123").unwrap_err(); in weak_smoke_tests()
617 parse_rfc3339("1970-01-01 00:00:00.000123Z").unwrap_err(); in weak_smoke_tests()
621 parse_rfc3339("1970-01-01 00:00:00Z").unwrap_err(); in weak_smoke_tests()