Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

MAX_YEAR

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.

Fully qualified path: chrono::date::MAX_YEAR

pub const MAX_YEAR: u32 = 262142;