Searched refs:ymd_opt (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 1899 let ymd_opt = |y, m, d| NaiveDate::from_ymd_opt(y, m, d); in test_date_from_ymd() localVariable 1901 assert!(ymd_opt(2012, 0, 1).is_none()); in test_date_from_ymd() 1902 assert!(ymd_opt(2012, 1, 1).is_some()); in test_date_from_ymd() 1903 assert!(ymd_opt(2012, 2, 29).is_some()); in test_date_from_ymd() 1904 assert!(ymd_opt(2014, 2, 29).is_none()); in test_date_from_ymd() 1905 assert!(ymd_opt(2014, 3, 0).is_none()); in test_date_from_ymd() 1906 assert!(ymd_opt(2014, 3, 1).is_some()); in test_date_from_ymd() 1907 assert!(ymd_opt(2014, 3, 31).is_some()); in test_date_from_ymd() 1908 assert!(ymd_opt(2014, 3, 32).is_none()); in test_date_from_ymd() 1909 assert!(ymd_opt(2014, 12, 31).is_some()); in test_date_from_ymd() [all …]
|
/external/rust/crates/chrono/src/offset/ |
D | mod.rs | 214 self.ymd_opt(year, month, day).unwrap() in ymd() 233 fn ymd_opt(&self, year: i32, month: u32, day: u32) -> LocalResult<Date<Self>> { in ymd_opt() method
|
/external/rust/crates/chrono/ |
D | README.md | 168 assert_eq!(Utc.ymd_opt(2014, 7, 8).and_hms_opt(21, 15, 33), 170 assert_eq!(Utc.ymd_opt(2014, 7, 8).and_hms_opt(80, 15, 33), LocalResult::None); 171 assert_eq!(Utc.ymd_opt(2014, 7, 38).and_hms_opt(21, 15, 33), LocalResult::None); 364 assert_eq!(Utc.ymd_opt(2014, 11, 31), LocalResult::None);
|