我无法更改 POSIXct 对象的时区。遵循以下建议: 更改 POSIXct 对象中的时区
我试过
> test
timestamp dttm_utc value estimated anomaly SITE_ID
954157 1328043600 2012-02-01 00:00:00 16.4803 0 NA 31
954158 1328043900 2012-02-01 00:05:00 16.4364 0 NA 31
> attributes(test[2,2])$tzone
TIME_ZONE
"America/New_York"
> attributes(test[2,2])$tzone <- "America/Los_Angeles"
> attributes(test[2,2])$tzone
TIME_ZONE
"America/New_York"
Run Code Online (Sandbox Code Playgroud)
为什么这不起作用?我怎么解决这个问题?