Changing time zone of XTS object

旧巷老猫 提交于 2019-12-11 01:37:30

问题


I have an data object with

index(x)
[6217] "2014-09-03 GMT" "2014-09-04 GMT" "2014-09-05 GMT" "2014-09-08 GMT" "2014-09-09 GMT" "2014-09-10 GMT" "2014-09-11 GMT"
[6224] "2014-09-12 GMT"

What can I do to change the objects time zone to "CDT"? Is there a function to do this?


回答1:


With indexTZ<-

indexTZ(x) <- "America/Chicago"


来源:https://stackoverflow.com/questions/25944277/changing-time-zone-of-xts-object

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!