Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/format/
Dparsed.rs39 pub year_div_100: Option<i32>, field
133 year_div_100: None, in default()
175 set_if_consistent(&mut self.year_div_100, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_year_div_100()
368 let given_year = resolve_year(self.year, self.year_div_100, self.year_mod_100)?; in to_naive_date()
374 let (year_div_100, year_mod_100) = if year >= 0 { in to_naive_date()
383 && self.year_div_100.or(year_div_100) == year_div_100 in to_naive_date()
816 assert_eq!(parse!(year_div_100: 19), Err(NOT_ENOUGH)); in test_parsed_to_naive_date()
817 assert_eq!(parse!(year_div_100: 19, year_mod_100: 84), Err(NOT_ENOUGH)); in test_parsed_to_naive_date()
818 assert_eq!(parse!(year_div_100: 19, year_mod_100: 84, month: 1), Err(NOT_ENOUGH)); in test_parsed_to_naive_date()
819 assert_eq!(parse!(year_div_100: 19, year_mod_100: 84, month: 1, day: 2), ymd(1984, 1, 2)); in test_parsed_to_naive_date()
[all …]
Dparse.rs601 year_div_100: 12, year_mod_100: 34, isoyear_div_100: 56, isoyear_mod_100: 78); in test_parse()