Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import pytz
- >>> import datetime
- >>> chicago_timezone = pytz.timezone('America/Chicago')
- >>> str(chicago_time.utcoffset(datetime.datetime.now()))
- '-1 day, 19:00:00'
- >>> str(chicago_time.utcoffset(datetime.datetime.now() + datetime.timedelta(days=1)))
- '-1 day, 18:00:00'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement