Skip to content

Instantly share code, notes, and snippets.

@prakashanantha
Created November 5, 2014 19:43
Show Gist options
  • Save prakashanantha/b963e72b32c1a8aec3e7 to your computer and use it in GitHub Desktop.
Save prakashanantha/b963e72b32c1a8aec3e7 to your computer and use it in GitHub Desktop.
Current Datetime in current timezone
to_zone = tz.gettz("Asia/Calcutta")
current_time = datetime.datetime.now().replace(tzinfo=to_zone)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment