Changing the System Time in Google Colaboratory

岁酱吖の 提交于 2019-12-11 01:03:48

问题


I would like to use my local time as the System Time in Google Colab, but I believe by default it is set to UTC time as indicated here: Current Date Format

How am I able to change the system time to my local time?


回答1:


Here's how to do it. For me, I live in Asia/Bangkok

!rm /etc/localtime
!ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
!date

Now I get Tue Apr 30 20:12:30 +07 2019. You can see the list of timezones by

!ls -al /usr/share/zoneinfo

And go into sub-directories for each group. (or simply search google)



来源:https://stackoverflow.com/questions/55918562/changing-the-system-time-in-google-colaboratory

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