Created
March 5, 2021 20:38
-
-
Save sadsfae/4b5848ce766cde737e329645b7ba6347 to your computer and use it in GitHub Desktop.
figure out timezone difference to PST, edit YOUR_DELTA appropriately.
This file contains 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
#!/usr/bin/env python3 | |
""" | |
check the timezone difference to PST | |
""" | |
from datetime import datetime, timedelta | |
YOUR_DELTA = "8" | |
D = datetime.today() - timedelta(hours=int(YOUR_DELTA), minutes=00) | |
D.strftime('%H:%M %p') | |
print(D) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment