0

Can anyone explain me what happens here?

> as.POSIXct(paste("20140329", "02:00:00"), format="%Y%m%d %H:%M:%S")
[1] "2014-03-29 02:00:00 CET"
> as.POSIXct(paste("20140330", "01:59:59"), format="%Y%m%d %H:%M:%S")
[1] "2014-03-30 01:59:59 CET"
> as.POSIXct(paste("20140330", "02:00:00"), format="%Y%m%d %H:%M:%S")
[1] NA
Marco
  • 9,334
  • 7
  • 33
  • 51
  • 2
    You haven't provided `sessionInfo()`, so this is just a guess, but it's probably because that is the time daylight saving time occurs in your timezone. Thus 2am does not exist on that date. – Joshua Ulrich Dec 15 '14 at 13:25
  • @JoshuaUlrich: If you make it an answer, I'll accept it! – Marco Dec 15 '14 at 13:35

0 Answers0