[英]Time zone for china not working in python arrow
arrow.get('2016-01-01')
arrow.get(datetime.now(), 'US/Pacific')
arrow.get(datetime.now(), 'China')
arrow.get(datetime.now(), 'CT')
arrow.get(datetime.now(), 'CST')
So, the first two statements work, but the remaining 3 which are trying to convert time to China time do not. 因此,前两个语句有效,而其余3个试图将时间转换为中国时间的语句无效。 How do I fix this?
我该如何解决?
尝试使用Asia / Shanghai或zh-cn作为时区字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.