Constant chrono::naive::date::MAX_YEAR

source ·
pub(super) const MAX_YEAR: i32 = _; // 262_142i32
Expand description

MAX_YEAR is one year less than the type is capable of representing. Internally we may sometimes use the headroom, notably to handle cases where the offset of a DateTime constructed with NaiveDate::MAX pushes it beyond the valid, representable range.