Home
last modified time | relevance | path

Searched refs:from_ymd_opt (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/chrono/src/naive/
Ddate.rs173 NaiveDate::from_ymd_opt(year, month, day).expect("invalid or out-of-range date") in from_ymd()
195 pub fn from_ymd_opt(year: i32, month: u32, day: u32) -> Option<NaiveDate> { in from_ymd_opt() method
478 NaiveDate::from_ymd_opt(year, month, day) in from_weekday_of_month_opt()
830 self.with_of(self.of().succ()).or_else(|| NaiveDate::from_ymd_opt(self.year() + 1, 1, 1)) in succ_opt()
867 self.with_of(self.of().pred()).or_else(|| NaiveDate::from_ymd_opt(self.year() - 1, 12, 31)) in pred_opt()
1899 let ymd_opt = |y, m, d| NaiveDate::from_ymd_opt(y, m, d); in test_date_from_ymd()
2002 let d = NaiveDate::from_ymd_opt(year, month, day); in test_date_from_isoywd_and_iso_week()
/external/rust/crates/chrono/src/offset/
Dmod.rs234 match NaiveDate::from_ymd_opt(year, month, day) { in ymd_opt()
/external/rust/crates/chrono/src/format/
Dparsed.rs425 let date = NaiveDate::from_ymd_opt(year, month, day).ok_or(OUT_OF_RANGE)?; in to_naive_date()