Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/format/
Dparsed.rs273 pub fn set_hour(&mut self, value: i64) -> ParseResult<()> { in set_hour() method
628 parsed.set_hour(i64::from(datetime.hour()))?; in to_naive_datetime_with_offset()
775 assert_eq!(p.set_hour(12), Ok(())); in test_parsed_set_fields()
776 assert_eq!(p.set_hour(11), Err(IMPOSSIBLE)); in test_parsed_set_fields()
777 assert_eq!(p.set_hour(13), Err(IMPOSSIBLE)); in test_parsed_set_fields()
778 assert_eq!(p.set_hour(12), Ok(())); in test_parsed_set_fields()
789 assert_eq!(p.set_hour(7), Err(IMPOSSIBLE)); in test_parsed_set_fields()
790 assert_eq!(p.set_hour(18), Err(IMPOSSIBLE)); in test_parsed_set_fields()
791 assert_eq!(p.set_hour(19), Ok(())); in test_parsed_set_fields()
Dparse.rs134 parsed.set_hour(try_consume!(scan::number(s, 2, 2)))?; in parse_rfc2822()
199 parsed.set_hour(try_consume!(scan::number(s, 2, 2)))?; in parse_rfc3339()
314 Hour => (2, false, Parsed::set_hour), in parse_internal()