如何转换CEST至UTC?

问题描述 投票:0回答:2

我想将时间转换为日期与时间:

 > 15525.1+as.Date("1970-01-01")
 [1] "2012-07-04" ## correct but no time

我试过这个:

> apollo.fmt <- "%B %d, %Y, %H:%M:%S"
> as.POSIXct((15525.1+as.Date("1970-01-01")), format=apollo.fmt, tz="UTC")
[1] "2012-07-04 04:24:00 CEST"

但正如您在CEST中看到的结果一样。但是我需要它在UTC中。有什么暗示吗?

r
2个回答
© www.soinside.com 2019 - 2024. All rights reserved.