[R] strptime() behaviour

Hanke, Alex HankeA at mar.dfo-mpo.gc.ca
Fri Feb 20 19:43:55 CET 2004


Is it normal behaviour for strptime("29-Jan-01","%d-%b-%y")$mon to return a
value of 0?
strptime("29-Jan-01","%d-%b-%y")$year #works ok
101 
strptime("29-Jan-01","%d-%b-%y")$mday #works ok
29
Regards,
Alex

Alex Hanke
Department of Fisheries and Oceans
St. Andrews Biological Station
531 Brandy Cove Road
St. Andrews, NB
Canada
E5B 2L9




More information about the R-help mailing list