Skip to content
Prev 6356 / 63424 Next

strptime bug (PR#1155)

On Wed, 31 Oct 2001 rmh@surfer.sbm.temple.edu wrote:

            
In your OS's implementation of strptime, not the R code ....
Well, I don't get either of those:

[1] "2001-12-12 23:40:00" "2001-12-12 23:50:00" "2001-12-13 00:00:00"
[4] "2001-12-13 00:10:00"

It would be helpful to give the incorrect output that your system gives.
In the output below I see no evidence of `the times wrap'.  Using the
wrong day seems to be a bug in glibc's strptime, but you need to unclass
the strptime result to see this.  (I do see the strptime bug on RH6.2
Linux, where the day field is ignored.)
Yes, but that was not the intention in the original (real) example,
where the year was not specified.
(You used 1900 below!)
Again, the need was to use `time' after the detach.  This only
occurred because you did not remove the variable your system created
incorrectly.

I will change this to work around a system-specific bug.  I'll pass on to
the Windows maintainer fixing the strptime code used on that platform.