适当的时间。我想写的测试之一是确保时区
都处理好了。这是我要进行的测试:
# GIVEN - A system in eastern time with a time written to disk
setSystemTimezone("eastern time")
myTool --write-time-to-disk
timeEastern: str = myTool --get-time # Time is returned as a string - cannot change this
# WHEN - Change timezone to pacific time & read time
setSystemTimezone("eastern time")
timePacific: str = myTool --get-time
# THEN - Time is different by 3 hours
...
而是改变我的系统的时区,python env还是。。?
有关我正在测试的内容的更多信息:
-
myTool
是单击命令
-
我的工具
将数据写入远程数据库