Skip to content
Prev 32097 / 398506 Next

strptime and non ISO date format

On Fri, May 16, 2003 at 01:36:04AM +0200, Petr Pikal wrote:
You have the month and day mixed up, and also asked for two-digit year when
you really have four digits. Correcting both of these does the trick:

edd at chibud:~> R --silent
+ "15.5.2003 00:03","15.5.2003 00:04")
[1] "2003-05-15 00:00:00" "2003-05-15 00:01:00" "2003-05-15 00:02:00"
[4] "2003-05-15 00:03:00" "2003-05-15 00:04:00"

Hth, Dirk