Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/format/
Dparsed.rs87 pub hour_div_12: Option<u32>, field
145 hour_div_12: None, in default()
257 set_if_consistent(&mut self.hour_div_12, if value { 1 } else { 0 }) in set_ampm()
275 set_if_consistent(&mut self.hour_div_12, v / 12)?; in set_hour()
530 let hour_div_12 = match self.hour_div_12 { in to_naive_time() localVariable
540 let hour = hour_div_12 * 12 + hour_mod_12; in to_naive_time()
1000 assert_eq!(parse!(hour_div_12: 0), Err(NOT_ENOUGH)); in test_parsed_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()
[all …]
Dparse.rs611 hour_div_12: 1, hour_mod_12: 11, minute: 45, second: 6, nanosecond: 78_901_234, in test_parse()
647 check!("am", [fix!(LowerAmPm)]; hour_div_12: 0); in test_parse()
648 check!("pm", [fix!(LowerAmPm)]; hour_div_12: 1); in test_parse()
649 check!("AM", [fix!(LowerAmPm)]; hour_div_12: 0); in test_parse()
650 check!("PM", [fix!(LowerAmPm)]; hour_div_12: 1); in test_parse()
651 check!("am", [fix!(UpperAmPm)]; hour_div_12: 0); in test_parse()
652 check!("pm", [fix!(UpperAmPm)]; hour_div_12: 1); in test_parse()
653 check!("AM", [fix!(UpperAmPm)]; hour_div_12: 0); in test_parse()
654 check!("PM", [fix!(UpperAmPm)]; hour_div_12: 1); in test_parse()
655 check!("Am", [fix!(LowerAmPm)]; hour_div_12: 0); in test_parse()
[all …]