Lines Matching refs:and_hms
834 let utc_dt = Utc.ymd(2018, 9, 5).and_hms(23, 58, 0); in test_auto_conversion()
835 let cdt_dt = FixedOffset::west(5 * 60 * 60).ymd(2018, 9, 5).and_hms(18, 58, 0); in test_auto_conversion()
848 to_string_utc(&Utc.ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
853 to_string_fixed(&FixedOffset::east(3660).ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
857 to_string_fixed(&FixedOffset::east(3650).ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
880 norm(&Some(Utc.ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json()
884 norm(&Some(Utc.ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json()
889 norm(&Some(FixedOffset::east(0).ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json()
893 norm(&Some(FixedOffset::east(60 * 60 + 23 * 60).ymd(2014, 7, 24).and_hms(13, 57, 6))) in test_decodable_json()
900 Utc.ymd(2014, 7, 24).and_hms(12, 34, 6) in test_decodable_json()
904 Utc.ymd(2014, 7, 24).and_hms(12, 34, 6) in test_decodable_json()
928 norm(&Some(Utc.ymd(1970, 1, 1).and_hms(0, 0, 0))) in test_decodable_json_timestamps()
932 norm(&Some(Utc.ymd(1969, 12, 31).and_hms(23, 59, 59))) in test_decodable_json_timestamps()
937 norm(&Some(FixedOffset::east(0).ymd(1970, 1, 1).and_hms(0, 0, 0))) in test_decodable_json_timestamps()
941 norm(&Some(FixedOffset::east(0).ymd(1969, 12, 31).and_hms(23, 59, 59))) in test_decodable_json_timestamps()
946 Utc.ymd(1970, 1, 1).and_hms(0, 0, 0) in test_decodable_json_timestamps()
950 Utc.ymd(1969, 12, 31).and_hms(23, 59, 59) in test_decodable_json_timestamps()
2162 let dt = Utc.ymd(2014, 7, 24).and_hms(12, 34, 6); in test_serde_bincode()
2189 assert_eq!(format!("{}", Utc.ymd(2014, 5, 6).and_hms(7, 8, 9)), "2014-05-06 07:08:09 UTC"); in test_datetime_offset()
2191 format!("{}", Edt.ymd(2014, 5, 6).and_hms(7, 8, 9)), in test_datetime_offset()
2195 format!("{}", Kst.ymd(2014, 5, 6).and_hms(7, 8, 9)), in test_datetime_offset()
2198 assert_eq!(format!("{:?}", Utc.ymd(2014, 5, 6).and_hms(7, 8, 9)), "2014-05-06T07:08:09Z"); in test_datetime_offset()
2200 format!("{:?}", Edt.ymd(2014, 5, 6).and_hms(7, 8, 9)), in test_datetime_offset()
2204 format!("{:?}", Kst.ymd(2014, 5, 6).and_hms(7, 8, 9)), in test_datetime_offset()
2209 assert_eq!(format!("{:?}", Utc.ymd(2014, 5, 6).and_hms(0, 0, 0)), "2014-05-06T00:00:00Z"); in test_datetime_offset()
2211 format!("{:?}", Edt.ymd(2014, 5, 6).and_hms(0, 0, 0)), in test_datetime_offset()
2215 format!("{:?}", Kst.ymd(2014, 5, 6).and_hms(0, 0, 0)), in test_datetime_offset()
2219 format!("{:?}", Utc.ymd(2014, 5, 6).and_hms(23, 59, 59)), in test_datetime_offset()
2223 format!("{:?}", Edt.ymd(2014, 5, 6).and_hms(23, 59, 59)), in test_datetime_offset()
2227 format!("{:?}", Kst.ymd(2014, 5, 6).and_hms(23, 59, 59)), in test_datetime_offset()
2231 let dt = Utc.ymd(2014, 5, 6).and_hms(7, 8, 9); in test_datetime_offset()
2232 assert_eq!(dt, Edt.ymd(2014, 5, 6).and_hms(3, 8, 9)); in test_datetime_offset()
2233 assert_eq!(dt + Duration::seconds(3600 + 60 + 1), Utc.ymd(2014, 5, 6).and_hms(8, 9, 10)); in test_datetime_offset()
2235 dt.signed_duration_since(Edt.ymd(2014, 5, 6).and_hms(10, 11, 12)), in test_datetime_offset()
2239 assert_eq!(*Utc.ymd(2014, 5, 6).and_hms(7, 8, 9).offset(), Utc); in test_datetime_offset()
2240 assert_eq!(*Edt.ymd(2014, 5, 6).and_hms(7, 8, 9).offset(), Edt); in test_datetime_offset()
2241 assert!(*Edt.ymd(2014, 5, 6).and_hms(7, 8, 9).offset() != Est); in test_datetime_offset()
2247 let d = tz.ymd(2014, 5, 6).and_hms(7, 8, 9); in test_datetime_date_and_time()
2254 let d = tz.ymd(2016, 5, 4).and_hms(3, 2, 1); in test_datetime_date_and_time()
2261 let d = tz.ymd(2017, 8, 9).and_hms(12, 34, 56); in test_datetime_date_and_time()
2267 let utc_d = Utc.ymd(2017, 8, 9).and_hms(12, 34, 56); in test_datetime_date_and_time()
2285 Utc.ymd(2015, 2, 18).and_hms(23, 16, 9).to_rfc2822(), in test_datetime_rfc2822_and_rfc3339()
2289 Utc.ymd(2015, 2, 18).and_hms(23, 16, 9).to_rfc3339(), in test_datetime_rfc2822_and_rfc3339()
2311 Ok(FixedOffset::east(0).ymd(2015, 2, 18).and_hms(23, 16, 9)) in test_datetime_rfc2822_and_rfc3339()
2315 Ok(FixedOffset::east(0).ymd(2015, 2, 18).and_hms(23, 16, 9)) in test_datetime_rfc2822_and_rfc3339()
2319 Ok(FixedOffset::east(0).ymd(2015, 2, 18).and_hms(23, 16, 9)) in test_datetime_rfc2822_and_rfc3339()
2357 let dt = Utc.ymd(1999, 10, 9).and_hms(1, 2, 3); in test_rfc3339_opts_nonexhaustive()
2405 let ymdhms = |y, m, d, h, n, s, off| FixedOffset::east(off).ymd(y, m, d).and_hms(h, n, s); in test_datetime_parse_from_str()
2418 Ok(Utc.ymd(2013, 8, 9).and_hms(23, 54, 35)) in test_datetime_parse_from_str()
2424 let dt = Utc.ymd(2000, 1, 1).and_hms(0, 0, 0); in test_to_string_round_trip()
2486 let epoch = Utc.ymd(1970, 1, 1).and_hms(0, 0, 0); in test_from_system_time()
2527 let epoch = Utc.ymd(1970, 1, 1).and_hms(0, 0, 0); in test_from_system_time()