Created
April 16, 2013 17:50
-
-
Save gjedeer/5397996 to your computer and use it in GitHub Desktop.
How I generate an email with planned server restart time, in all time zones
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 pytz | |
from datetime import datetime, timedelta | |
time_cet = datetime(2013,04,18, 6,0,0, tzinfo=pytz.utc) | |
for tz in pytz.all_timezones: | |
print tz.ljust(30), time_cet.astimezone(pytz.timezone(tz)).strftime('%Y %B %d, %H:%M') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment