[R] strptime() behaviour
Gabor Grothendieck
ggrothendieck at myway.com
Fri Feb 20 21:28:59 CET 2004
Yes, its normal.
See ?DateTimeClasses
---
Date: Fri, 20 Feb 2004 14:43:55 -0400
From: Hanke, Alex <HankeA at mar.dfo-mpo.gc.ca>
[ Add to Address Book | Block Address | Report as Spam ]
To: 'r-help at stat.math.ethz.ch' <r-help at stat.math.ethz.ch>
Subject: [R] strptime() behaviour
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