New version of chron

Kurt Hornik hornik at ci.tuwien.ac.at
Wed Jun 28 23:13:32 CEST 2000


A new version of the chron add-on package is now available from CRAN.

The previous version introduced code to ensure that chron would work
correctly in the 21st century.  Of course, the main issue is how to deal
with 2-digit dates.  To this end, the original author of chron, David
James, indicated that the `y' format specifier was always meant to
specify the year without the century (i.e., the year modulo 100), as in
strftime(3)'s `%y'.  Hence, there should be an error when using a number
outside the [0, 99] range, such as 1999 or 2000, with the `y' format
specifier.

Several users have expressed their dislike of the new behavior and that
using `y' with 4-digit years used to work, sort of.  Hence, the new
versions has changed the default behavior as follows.  2-digit years are
expanded using 30 as century cutoff, i.e.

	00 -> 29		21st century
	30 -> 99		20th century

All other values are left alone.

In the next version, I want to introduce strftime(3) formatting specs,
similar to the new timeDate class in S-PLUS 5.  Most likely, ISO 8601
format (yyyy-mm-dd hh:mm:ss) will be used as default.

-kh

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-announce mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-announce-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-announce mailing list