Skip to content

Instantly share code, notes, and snippets.

@rg3915
Created February 22, 2024 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rg3915/66bbfd0969360af089a241169e909e89 to your computer and use it in GitHub Desktop.
Save rg3915/66bbfd0969360af089a241169e909e89 to your computer and use it in GitHub Desktop.
timezone
from datetime import timezone, timedelta
tz = timezone(timedelta(hours=-3))
datetime.now(tz)
datetime.now(tz).isoformat()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment