Weird as.POSIXct behavior depending on daylight savings time
问题 It seems there is a bug in as.POSIXct. Or what is going on? as.POSIXct("27/03/2006 02:05:38", format="%d/%m/%Y %H:%M:%S") [1] "2006-03-27 02:05:38 CEST" as.POSIXct("26/03/2006 02:05:38", format="%d/%m/%Y %H:%M:%S") [1] NA March 26, 2006 happened as far as I know... 回答1: if you really want it printed with the times you can always do. as.POSIXct("26/03/2006 02:05:38", format="%d/%m/%Y %H:%M:%S", tz = "UTC") #[1] "2006-03-26 02:05:38 UTC" Just make sure you do this for all conversions for