Skip to content

Instantly share code, notes, and snippets.

@mtairu
Created December 4, 2016 22:44
Show Gist options
  • Save mtairu/495678a3374e008a99e2cf2c93ceb963 to your computer and use it in GitHub Desktop.
Save mtairu/495678a3374e008a99e2cf2c93ceb963 to your computer and use it in GitHub Desktop.
import datetime
from datetime import timedelta
pdt = datetime.datetime.utcnow() - datetime.timedelta(seconds=25200)
""" seconds are equivalent of time difference, utc - 7 = pdt """
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment