Searched refs:hour_mod_12 (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 90 pub hour_mod_12: Option<u32>, field 146 hour_mod_12: None, in default() 267 set_if_consistent(&mut self.hour_mod_12, value as u32 % 12) in set_hour12() 276 set_if_consistent(&mut self.hour_mod_12, v % 12)?; in set_hour() 535 let hour_mod_12 = match self.hour_mod_12 { in to_naive_time() localVariable 540 let hour = hour_div_12 * 12 + hour_mod_12; in to_naive_time() 1001 assert_eq!(parse!(hour_div_12: 0, hour_mod_12: 1), Err(NOT_ENOUGH)); in test_parsed_to_naive_time() 1002 assert_eq!(parse!(hour_div_12: 0, hour_mod_12: 1, minute: 23), hms(1, 23, 0)); in test_parsed_to_naive_time() 1003 assert_eq!(parse!(hour_div_12: 0, hour_mod_12: 1, minute: 23, second: 45), hms(1, 23, 45)); in test_parsed_to_naive_time() 1005 parse!(hour_div_12: 0, hour_mod_12: 1, minute: 23, second: 45, in test_parsed_to_naive_time() [all …]
|
D | parse.rs | 608 weekday: Weekday::Sun, ordinal: 89, hour_mod_12: 1); in test_parse() 611 hour_div_12: 1, hour_mod_12: 11, minute: 45, second: 6, nanosecond: 78_901_234, in test_parse() 763 year: 2015, month: 2, day: 4, hour_div_12: 1, hour_mod_12: 2, in test_parse() 768 year: 2015, month: 2, day: 4, hour_div_12: 1, hour_mod_12: 2, in test_parse() 775 hour_div_12: 0, hour_mod_12: 9, minute: 32, second: 37); in test_parse() 781 hour_div_12: 1, hour_mod_12: 1, minute: 39, second: 15); in test_parse() 784 year: 2006, month: 1, day: 2, hour_div_12: 1, hour_mod_12: 3, minute: 4, second: 5); in test_parse() 787 hour_div_12: 1, hour_mod_12: 3, minute: 14); in test_parse()
|