[R] strptime

Erik Iverson iverson at biostat.wisc.edu
Wed Jun 18 19:00:02 CEST 2008



Eric Elguero wrote:
> Hi,
> 
> what's wrong with that?
> 
>> strptime("06:00:00 03.01.2008",format="%H:%M%:%S %d.%m.%Y",tz="GMT")
> [1] NA
> 
> the command seems to comply with the rules in the help file

But it does not.  Look closely at the format, and then you'll see %M%...

  but returns NA
> (R 2.6.1 Windows XT)
> 
> Eric Elguero
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list