15.9.1.15.1 Extended years

2010-07-19

Ecmascript requires the ability to specify a six digit year to accomodate it being able to represent about 285616 years in either direction. The ISO 8601 allows you to extend the notation to include such years but only if sender and receiver are in agreement. In Ecmascript this is fixed by requiring six digit years be prefixed by a + or -.

Note that year 0 is positive so requires a + prefix.

This would make the timestamp as follows:
+YYYYYY-MM-DDTHH:mm:ss:.sssZ
-YYYYYY-MM-DDTHH:mm:ss:.sssZ

And all partial versions, with optional Z, as described in 15.9.1.15.