Searched refs:set_month (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 213 pub fn set_month(&mut self, value: i64) -> ParseResult<()> { in set_month() method 763 assert_eq!(p.set_month(7), Ok(())); in test_parsed_set_fields() 764 assert_eq!(p.set_month(1), Err(IMPOSSIBLE)); in test_parsed_set_fields() 765 assert_eq!(p.set_month(6), Err(IMPOSSIBLE)); in test_parsed_set_fields() 766 assert_eq!(p.set_month(8), Err(IMPOSSIBLE)); in test_parsed_set_fields() 767 assert_eq!(p.set_month(12), Err(IMPOSSIBLE)); in test_parsed_set_fields() 770 assert_eq!(p.set_month(8), Ok(())); in test_parsed_set_fields() 771 assert_eq!(p.set_month(0x1_0000_0008), Err(OUT_OF_RANGE)); in test_parsed_set_fields()
|
D | parse.rs | 112 parsed.set_month(1 + i64::from(try_consume!(scan::short_month0(s))))?; in parse_rfc2822() 189 parsed.set_month(try_consume!(scan::number(s, 2, 2)))?; in parse_rfc3339() 306 Month => (2, false, Parsed::set_month), in parse_internal() 348 parsed.set_month(i64::from(month0) + 1).map_err(|e| (s, e))?; in parse_internal() 353 parsed.set_month(i64::from(month0) + 1).map_err(|e| (s, e))?; in parse_internal()
|