出于某种原因,as.POSIXct解释"2013-03-10 02:00:00.000"不同于该格式的其他有效日期时间。
> as.POSIXct("2013-03-10 01:00:00.000") #Different time, same date
[1] "2013-03-10 01:00:00 PST"
> as.POSIXct("2013-03-11 02:00:00.000") #Same time, different date
[1] "2013-03-11 02:00:00 PDT"
> as.POSIXct("2013-03-10 02:00:00.000")
[1] "2013-03-10 PST"
我正在使用该包RODBC从数据库中读取它,它会自动将整列日期时间转换为POSIXct类。这会导致整个列丢失时间信息。