Home
last modified time | relevance | path

Searched refs:isoywd_opt (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/chrono/src/naive/
Ddate.rs1945 let isoywd_opt = |y, w, d| NaiveDate::from_isoywd_opt(y, w, d); in test_date_from_isoywd() localVariable
1948 assert_eq!(isoywd_opt(2004, 0, Weekday::Sun), None); in test_date_from_isoywd()
1949 assert_eq!(isoywd_opt(2004, 1, Weekday::Mon), Some(ymd(2003, 12, 29))); in test_date_from_isoywd()
1950 assert_eq!(isoywd_opt(2004, 1, Weekday::Sun), Some(ymd(2004, 1, 4))); in test_date_from_isoywd()
1951 assert_eq!(isoywd_opt(2004, 2, Weekday::Mon), Some(ymd(2004, 1, 5))); in test_date_from_isoywd()
1952 assert_eq!(isoywd_opt(2004, 2, Weekday::Sun), Some(ymd(2004, 1, 11))); in test_date_from_isoywd()
1953 assert_eq!(isoywd_opt(2004, 52, Weekday::Mon), Some(ymd(2004, 12, 20))); in test_date_from_isoywd()
1954 assert_eq!(isoywd_opt(2004, 52, Weekday::Sun), Some(ymd(2004, 12, 26))); in test_date_from_isoywd()
1955 assert_eq!(isoywd_opt(2004, 53, Weekday::Mon), Some(ymd(2004, 12, 27))); in test_date_from_isoywd()
1956 assert_eq!(isoywd_opt(2004, 53, Weekday::Sun), Some(ymd(2005, 1, 2))); in test_date_from_isoywd()
[all …]
/external/rust/crates/chrono/src/offset/
Dmod.rs291 self.isoywd_opt(year, week, weekday).unwrap() in isoywd()
303 fn isoywd_opt(&self, year: i32, week: u32, weekday: Weekday) -> LocalResult<Date<Self>> { in isoywd_opt() method