Home
last modified time | relevance | path

Searched refs:MIN_YEAR (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/chrono/src/naive/
Ddate.rs25 const MIN_YEAR: i32 = internals::MIN_YEAR; constant
42 const MIN_DAYS_FROM_YEAR_0: i32 = (MIN_YEAR + 400_000) * 365 + (MIN_YEAR + 400_000) / 4
43 - (MIN_YEAR + 400_000) / 100
44 + (MIN_YEAR + 400_000) / 400
104 pub const MIN_DATE: NaiveDate = NaiveDate { ymdf: (MIN_YEAR << 13) | (1 << 4) | 0o07 /*FE*/ };
112 let calculated_min = NaiveDate::from_ymd(MIN_YEAR, 1, 1); in test_date_bounds()
139 if year >= MIN_YEAR && year <= MAX_YEAR && of.valid() { in from_of()
1892 use super::{MIN_DATE, MIN_DAYS_FROM_YEAR_0, MIN_YEAR};
2206 check((0, 1, 1), Duration::days(MIN_DAYS_FROM_YEAR_0 as i64), Some((MIN_YEAR, 1, 1))); in test_date_add()
2228 check((MIN_YEAR, 1, 1), (0, 1, 1), Duration::days(MIN_DAYS_FROM_YEAR_0 as i64)); in test_date_sub()
Disoweek.rs153 assert_eq!(minweek.year(), internals::MIN_YEAR); in test_iso_week_extremes()
Dinternals.rs28 pub const MIN_YEAR: DateImpl = i32::MIN >> 13; constant