Should years before 1 be shifted by 1? #108
Labels
bug
Something isn't working
enhancement
New feature or request
question
Further information is requested
Looking at the ISO 8601 years specifics:
Topics:
+
).new Date(-33, 0, 1).getFullYear()
, does it represent actual year -33 or actual year -34? For accuracy with date diffing, it would be nice ifdatetime-attribute
could allow to configure this behaviour (e.g. with ashiftDatesBeforeYearOne
setting or with something else that would remind the era of theTemporal.PlainDateTime
object). Currentlynew Date(-33, 0, 1)
is expected to be real year -33 (see tests).Tasks:
+
sign beyond 9999;The text was updated successfully, but these errors were encountered: