[R] Strange behaviour of strptime

Joerg Maeder maeder at atmos.umnw.ethz.ch
Wed Mar 6 09:21:37 CET 2002


Hello,

can anybopdy explain me this?

> strptime('02 03',format= '%y %m' )
[1] "2002-02-28"
> strptime('02 03 04',format= '%y %m %d' )
[1] "2002-03-04"


shouldn't the first example return "2002-03-01"?

gruess

joerg
-- 
Joerg Maeder    .:|:||:..:.||.::   maeder at atmos.umnw.ethz.ch
Tel: +41 1 633 36 25   .:|:||:..:.||.::   
http://www.iac.ethz.ch/staff/maeder
PhD student at INSTITUTE FOR ATMOSPHERIC AND CLIMATE SCIENCE (IACETH)
ETH ZÜRICH Switzerland
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list