Lines Matching refs:from_ymd
1509 to_string(&NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90)).ok(), in test_encodable_json()
1513 to_string(&NaiveDate::from_ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json()
1517 to_string(&NaiveDate::from_ymd(0, 1, 1).and_hms_milli(0, 0, 59, 1_000)).ok(), in test_encodable_json()
1521 to_string(&NaiveDate::from_ymd(-1, 12, 31).and_hms_nano(23, 59, 59, 7)).ok(), in test_encodable_json()
1544 Some(NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90)) in test_decodable_json()
1548 Some(NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90)) in test_decodable_json()
1552 Some(NaiveDate::from_ymd(2014, 7, 24).and_hms(12, 34, 6)) in test_decodable_json()
1556 Some(NaiveDate::from_ymd(0, 1, 1).and_hms_milli(0, 0, 59, 1_000)) in test_decodable_json()
1560 Some(NaiveDate::from_ymd(0, 1, 1).and_hms_milli(0, 0, 59, 1_000)) in test_decodable_json()
1564 Some(NaiveDate::from_ymd(-1, 12, 31).and_hms_nano(23, 59, 59, 7)) 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()
2218 let dt = NaiveDate::from_ymd(2016, 7, 8).and_hms_milli(9, 10, 48, 90); in test_serde_bincode()
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()
2299 let max_days_from_year_0 = MAX_DATE.signed_duration_since(NaiveDate::from_ymd(0, 1, 1)); in test_datetime_add()
2309 let min_days_from_year_0 = MIN_DATE.signed_duration_since(NaiveDate::from_ymd(0, 1, 1)); 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()
2421 |y, m, d, h, n, s, nano| NaiveDate::from_ymd(y, m, d).and_hms_nano(h, n, s, nano); in test_datetime_parse_from_str()
2468 let dt = NaiveDate::from_ymd(2010, 9, 8).and_hms_milli(7, 6, 54, 321); in test_datetime_format()
2474 let dt = NaiveDate::from_ymd(2012, 6, 30).and_hms_milli(23, 59, 59, 1_000); in test_datetime_format()
2482 let base = NaiveDate::from_ymd(2000, 1, 1).and_hms(0, 0, 0); in test_datetime_add_sub_invariant()