Skip to content
Prev 40913 / 398498 Next

ISOdate() and strptime()

Confirmation that this *is* an OS-specific problem: A professional 
implementation of the POSIX standard (Solaris) gets all of these correct.

Your so-called OS lacks any implementation of strptime, so we borrowed one 
from glibc.  Unfortunately, that is buggy, even to the extent that

unclass(strptime("2003-22-20", format="%Y-%m-%d"))
unclass(strptime("2003 22 20", format="%Y %m %d"))

give different answers!  (And RH8.0 gives the same answers as the 
substitute code used on R for Windows.)

I believe Simon Fear owes the R-developers a public apology for his (not
properly referenced in the archives) reply to this thread.

BDR
On Fri, 14 Nov 2003, Prof Brian Ripley wrote: