[R] strptime() behaviour

Hanke, Alex
Fri, 20 Feb 2004 18:43:55 -0000

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