Skip to content

Instantly share code, notes, and snippets.

@andanhm
Created December 28, 2018 11:28
Show Gist options
  • Save andanhm/7221feb6bcc687c747a6ca28a767143e to your computer and use it in GitHub Desktop.
Save andanhm/7221feb6bcc687c747a6ca28a767143e to your computer and use it in GitHub Desktop.
Python India ISO Time
#!/usr/bin/python
import pytz
from datetime import datetime, timedelta
intz = pytz.timezone('Asia/Kolkata')
print (datetime.now(intz)+ timedelta(days=1)).strftime("%Y-%m-%d %H:%M %p")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment