/external/rust/crates/chrono/src/naive/ |
D | date.rs | 112 let calculated_min = NaiveDate::from_ymd(MIN_YEAR, 1, 1); in test_date_bounds() 113 let calculated_max = NaiveDate::from_ymd(MAX_YEAR, 12, 31); in test_date_bounds() 172 pub fn from_ymd(year: i32, month: u32, day: u32) -> NaiveDate { in from_ymd() method 475 let first = NaiveDate::from_ymd(year, month, 1).weekday(); in from_weekday_of_month_opt() 1723 assert_eq!(to_string(&NaiveDate::from_ymd(2014, 7, 24)).ok(), Some(r#""2014-07-24""#.into())); in test_encodable_json() 1724 assert_eq!(to_string(&NaiveDate::from_ymd(0, 1, 1)).ok(), Some(r#""0000-01-01""#.into())); in test_encodable_json() 1725 assert_eq!(to_string(&NaiveDate::from_ymd(-1, 12, 31)).ok(), Some(r#""-0001-12-31""#.into())); in test_encodable_json() 1738 assert_eq!(from_str(r#""2016-07-08""#).ok(), Some(NaiveDate::from_ymd(2016, 7, 8))); in test_decodable_json() 1739 assert_eq!(from_str(r#""2016-7-8""#).ok(), Some(NaiveDate::from_ymd(2016, 7, 8))); in test_decodable_json() 1740 assert_eq!(from_str(r#""+002016-07-08""#).ok(), Some(NaiveDate::from_ymd(2016, 7, 8))); in test_decodable_json() [all …]
|
D | datetime.rs | 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() [all …]
|
/external/rust/crates/chrono/src/ |
D | lib.rs | 1434 let d4 = NaiveDate::from_ymd(y, 4, 4); in test_readme_doomsday() 1435 let d6 = NaiveDate::from_ymd(y, 6, 6); in test_readme_doomsday() 1436 let d8 = NaiveDate::from_ymd(y, 8, 8); in test_readme_doomsday() 1437 let d10 = NaiveDate::from_ymd(y, 10, 10); in test_readme_doomsday() 1438 let d12 = NaiveDate::from_ymd(y, 12, 12); in test_readme_doomsday() 1441 let d59 = NaiveDate::from_ymd(y, 5, 9); in test_readme_doomsday() 1442 let d95 = NaiveDate::from_ymd(y, 9, 5); in test_readme_doomsday() 1443 let d711 = NaiveDate::from_ymd(y, 7, 11); in test_readme_doomsday() 1444 let d117 = NaiveDate::from_ymd(y, 11, 7); in test_readme_doomsday() 1447 let d30 = NaiveDate::from_ymd(y, 3, 1).pred(); in test_readme_doomsday() [all …]
|
D | datetime.rs | 2250 assert_eq!(d.date().naive_local(), NaiveDate::from_ymd(2014, 5, 6)); in test_datetime_date_and_time() 2257 assert_eq!(d.date().naive_local(), NaiveDate::from_ymd(2016, 5, 4)); in test_datetime_date_and_time() 2264 assert_eq!(d.date().naive_local(), NaiveDate::from_ymd(2017, 8, 9)); in test_datetime_date_and_time()
|
/external/rust/crates/rusqlite/src/types/ |
D | chrono.rs | 144 let date = NaiveDate::from_ymd(2016, 2, 23); in test_naive_date() 178 let date = NaiveDate::from_ymd(2016, 2, 23); in test_naive_date_time() 205 let date = NaiveDate::from_ymd(2016, 2, 23); in test_date_time_utc() 244 let date = NaiveDate::from_ymd(2016, 2, 23); in test_date_time_local()
|
/external/toolchain-utils/llvm_tools/ |
D | upload_lexan_crashes_to_forcey.py | 77 def from_ymd(date_str: str) -> datetime.date: function 235 most_recent_date = from_ymd(data['most_recent_date']) 251 earliest_date_to_check=from_ymd(last_date_str),
|
D | upload_lexan_crashes_to_forcey_test.py | 22 upload_lexan_crashes_to_forcey.from_ymd('2020-02-01'))
|
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 808 let ymd = |y, m, d| Ok(NaiveDate::from_ymd(y, m, d)); in test_parsed_to_naive_date() 1051 let ymdhms = |y, m, d, h, n, s| Ok(NaiveDate::from_ymd(y, m, d).and_hms(h, n, s)); in test_parsed_to_naive_datetime_with_offset() 1053 |y, m, d, h, n, s, nano| Ok(NaiveDate::from_ymd(y, m, d).and_hms_nano(h, n, s, nano)); in test_parsed_to_naive_datetime_with_offset() 1107 MAX_DATE.signed_duration_since(NaiveDate::from_ymd(1970, 1, 1)); in test_parsed_to_naive_datetime_with_offset() 1109 NaiveDate::from_ymd(0, 1, 1).signed_duration_since(NaiveDate::from_ymd(1970, 1, 1)); in test_parsed_to_naive_datetime_with_offset() 1111 MIN_DATE.signed_duration_since(NaiveDate::from_ymd(1970, 1, 1)); in test_parsed_to_naive_datetime_with_offset()
|
/external/rust/crates/chrono/benches/ |
D | chrono.rs | 95 let d = NaiveDate::from_ymd(*year, 1, 1); in bench_num_days_from_ce()
|
/external/rust/crates/chrono/src/offset/ |
D | local.rs | 36 NaiveDate::from_ymd(tm.tm_year + 1900, tm.tm_mon as u32 + 1, tm.tm_mday as u32) in tm_to_datetime()
|
/external/rust/crates/plotters/src/coord/ranged1d/types/ |
D | datetime.rs | 67 NaiveDate::from_ymd(year, month, date) in ymd() 149 NaiveDate::from_ymd(year, month, date) in ymd()
|