Lines Matching refs:MAX_DATE
106 pub const MAX_DATE: NaiveDate = NaiveDate { ymdf: (MAX_YEAR << 13) | (365 << 4) | 0o17 /*F*/ }; constant
120 MAX_DATE == calculated_max, in test_date_bounds()
127 let maxsecs = MAX_DATE.signed_duration_since(MIN_DATE).num_seconds(); in test_date_bounds()
1570 if self.value == MAX_DATE { in next()
1581 let exact_size = MAX_DATE.signed_duration_since(self.value).num_days(); in size_hint()
1597 if MAX_DATE - self.value < OldDuration::weeks(1) { in next()
1606 let exact_size = MAX_DATE.signed_duration_since(self.value).num_weeks(); in size_hint()
1727 assert_eq!(to_string(&MAX_DATE).ok(), Some(r#""+262143-12-31""#.into())); in test_encodable_json()
1745 assert_eq!(from_str(r#""+262143-12-31""#).ok(), Some(MAX_DATE)); in test_decodable_json()
1891 use super::{MAX_DATE, MAX_DAYS_FROM_YEAR_0, MAX_YEAR};
2041 assert_eq!(from_ndays_from_ce(MAX_DATE.num_days_from_ce()), Some(MAX_DATE)); in test_date_from_num_days_from_ce()
2042 assert_eq!(from_ndays_from_ce(MAX_DATE.num_days_from_ce() + 1), None); in test_date_from_num_days_from_ce()
2168 assert_eq!(ymd(MAX_DATE.year(), 12, 31).succ_opt(), None); in test_date_succ()