• Home
  • Raw
  • Download

Lines Matching refs:and_hms

1513         to_string(&NaiveDate::from_ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(),  in test_encodable_json()
1525 to_string(&MIN_DATE.and_hms(0, 0, 0)).ok(), in test_encodable_json()
1552 Some(NaiveDate::from_ymd(2014, 7, 24).and_hms(12, 34, 6)) in test_decodable_json()
1566 assert_eq!(from_str(r#""-262144-01-01T00:00:00""#).ok(), Some(MIN_DATE.and_hms(0, 0, 0))); in test_decodable_json()
1606 NaiveDate::from_ymd(1970, 1, 1).and_hms(0, 0, 0), in test_decodable_json_timestamp()
1611 NaiveDate::from_ymd(1969, 12, 31).and_hms(23, 59, 59), in test_decodable_json_timestamp()
2238 let expected = Test { one: Some(1), two: Some(Utc.ymd(1970, 1, 1).and_hms(0, 1, 1)) }; in test_serde_bincode_optional()
2257 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_from_timestamp()
2274 let lhs = NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_add()
2276 result.map(|(y, m, d, h, n, s)| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s)); in test_datetime_add()
2317 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_sub()
2343 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_addassignment()
2353 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_subassignment()
2364 |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s).timestamp(); in test_datetime_timestamp()
2419 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_parse_from_str()
2482 let base = NaiveDate::from_ymd(2000, 1, 1).and_hms(0, 0, 0); in test_datetime_add_sub_invariant()