pbarros wrote: > Hi all, > > I am using ISOdatetime, and I just found out that when I do > ISOdatetime(1995,03,26,2,10,0) (or any other value under minutes or seconds) > I get NA > > This does not happen with the same time in other dates, nor with different > hours in the same date. > Any hint why this happens? > > Using R 2.8.1 under ESS/GnuEmacs under Windows XP > > Pedro
Daylight savings time, I guess. The clock went directly from 1:59 to 3:00 that day. Other systems behave strangely (er, "handle the anomaly") in different ways: > ISOdatetime(1995,03,26,1,10,0) [1] "1995-03-26 01:10:00 CET" > ISOdatetime(1995,03,26,2,10,0) [1] "1995-03-26 01:10:00 CET" > ISOdatetime(1995,03,26,3,10,0) [1] "1995-03-26 03:10:00 CEST" (SUSE 10.2) -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalga...@biostat.ku.dk) FAX: (+45) 35327907 ______________________________________________ R-help@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.