[Rd] strptime mysteriously adds a day - 0S-specific: Linux and Windows (so far) (PR#1466)
Martin Maechler
Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 18 Apr 2002 14:41:57 +0200
>>>>> "Jason" == Jason Turner <jasont@indigoindustrial.co.nz> writes:
Jason> strptime() mysteriously adds a day to a date, unless the year
Jason> is specified. Tested on:
Jason> Linux (RedHat 6.0) - R version 1.4.1 and R-devel.
Jason> Windows - R version 1.4.1
Jason> Bug isn't found on OpenBSD, R version 1.4.1.
I confirm the bug (R-devel, Redhat 7.1)
To reproduce, it's sufficient to work with
"%d %B" or "%d %b" .
What happens is that January and February work okay, and all
months from March produce the problem,
e.g.
> strptime("28 Feb",format="%d %b")# ok
[1] "2002-02-28"
> strptime("19 March",format="%d %B")# wrong
[1] "2002-03-20"
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._