Skip to main content

VALID_YEAR_RANGE

Constant VALID_YEAR_RANGE 

Source
const VALID_YEAR_RANGE: RangeInclusive<i32>;
Expand description

The range ±2²⁷. We use i32::MIN since it is -2³¹

This range is currently global, and applied to both era years and extended years, but may be replaced with a per-calendar check in the future.

https://github.com/unicode-org/icu4x/issues/7076