小编Joe*_*eng的帖子

Google Colab 中的不同时区

问题:为什么 Colab 的时区与本地时区不同?

背景::我住在美国。但Colab时间(我指定的是美国时区)与当地时间有五个小时的时差。

代码:

!rm /etc/localtime
!ln -s /usr/share/zoneinfo/US /etc/localtime # the time should be around 11:20
!date
Run Code Online (Sandbox Code Playgroud)

结果: 2019 年 8 月 7 日星期三 16:20:40 世界标准时间

time timezone-offset google-colaboratory

4
推荐指数
1
解决办法
3847
查看次数