Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/offset/
Dmod.rs267 match NaiveDate::from_yo_opt(year, ordinal) { in yo_opt()
/external/rust/crates/chrono/src/format/
Dparsed.rs431 let date = NaiveDate::from_yo_opt(year, ordinal).ok_or(OUT_OF_RANGE)?; in to_naive_date()
441 let newyear = NaiveDate::from_yo_opt(year, 1).ok_or(OUT_OF_RANGE)?; in to_naive_date()
475 let newyear = NaiveDate::from_yo_opt(year, 1).ok_or(OUT_OF_RANGE)?; in to_naive_date()
/external/rust/crates/chrono/src/naive/
Ddate.rs221 NaiveDate::from_yo_opt(year, ordinal).expect("invalid or out-of-range date") in from_yo()
244 pub fn from_yo_opt(year: i32, ordinal: u32) -> Option<NaiveDate> { in from_yo_opt() method
1915 let yo_opt = |y, o| NaiveDate::from_yo_opt(y, o); in test_date_from_yo()