trevorld / r-datetimeoffset

Datetimes with optional UTC offsets and/or (possibly heteregenous) time zones

Home Page:https://trevorldavis.com/R/datetimeoffset/dev/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import/parse years before 0 and after 9999

trevorld opened this issue · comments

  • Format years before 0
  • Format years after 9999
  • Parse years before 0 or after 9999 (just year)
  • Parse years before 0 or after 9999 (year plus month etc)
  • Convert to {clock} classes
  • Convert from {clock} classes
  • Convert to {base} datetimes
  • Convert from {base} datetimes

According to Wikipedia:

An expanded year representation [±YYYYY] must have an agreed-upon number of extra year digits beyond the four-digit minimum, and it must be prefixed with a + or − sign[21] instead of the more common AD/BC (or CE/BCE) notation; by convention 1 BC is labelled +0000, 2 BC is labeled −0001, and so on.[22]

Playing around with {nanotime} seems like max/min possible years don't go beneath 0 or above 9999.