[R] How to convert number (matlab) to date
ggrothendieck at gmail.com
Wed Jul 20 13:46:44 CEST 2011
2011/7/19 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
>> but even this is dubious, since there is no year 0 AD. In Gregorian
>> and Julian calendars, 1 BC continues directly into 1 AD.
> True, but these days we are ruled by ISO 8601:2004, which does define a year
> 0 (the year before 1CE aka 1AD). See
> http://en.wikipedia.org/wiki/0_(year) .
> It seems also to redefine the meaning of 'Gregorian calendar' calling what
> you are referring to the 'BC/AD calendar system'. (Those who prefer BCE/CE
> to BC/AD might note the usage of the latter in the definitive international
The Date class has not been extended to support "0000-00-00"; rather,
argument of as.Date.numeric has been extended to allow "0000-00-00". There is
no real difference between something like origin = "0000-00-00" and
origin = "matlab", say.
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help