ExtendedDate.year

Returns the year part of the date: a value in the range [-1_000_000_000,-1] ∪ [1,999_999_999], where -1 is the year 1 BCE.

Do not use val.year directly unless you are absolutely sure that it is in the range a Time can hold (-10000 to 9999).

struct ExtendedDate
int
year
()
out (val) { assert ((val >= -1_000_000_000 && val <= -1) || (val >= 1 && val <= 999_999_999)); }

Meta