Created
December 19, 2010 01:50
-
-
Save zhasm/747033 to your computer and use it in GitHub Desktop.
set timezone to china gmt+8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import os | |
os.environ['TZ']='Asia/Shanghai' | |
time.tzset() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment