我刚刚安装了最新版本的lubridate(1.7.3),但出现了以下错误:
> x <- as.POSIXct("2014-06-01 08:21:59 BST")
> for (j in 1:1e4){
dum <- lubridate::force_tz(x, tzone = 'UTC')
}
> for (j in 1:1e8){
dum <- lubridate::force_tz(x, tzone = 'UTC')
}
Error in C_force_tz(time, tz = tzone, roll) :
CCTZ: Unrecognized timezone of the input vector: ""
> j
[1] 580
如果我在第一个循环后继续使用 1e4
,我就无法得到结果,如果我从 1e8
开始,也无法得到结果。有什么想法吗?