Last active
April 24, 2022 08:01
-
-
Save rafzei/f5bf900551b8fa60d3c9368add8e0808 to your computer and use it in GitHub Desktop.
Simple python date with timezone
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
from datetime import datetime | |
import pytz | |
def set_timezone(): | |
timezone = pytz.timezone("Europe/Warsaw") | |
return timezone | |
print(datetime.now(tz = set_timezone())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment