Skip to content

Instantly share code, notes, and snippets.

@glennzw
Created October 1, 2014 15:31
Show Gist options
  • Save glennzw/7255217742a5930b4c62 to your computer and use it in GitHub Desktop.
Save glennzw/7255217742a5930b4c62 to your computer and use it in GitHub Desktop.
Python timezone comparisons
dateutil.parser.parse("2014-07-08T10:18:01+02:00") - datetime.datetime.now(dateutil.tz.tzutc())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment