Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created May 4, 2011 16:03
Show Gist options
  • Save Eugeny/955476 to your computer and use it in GitHub Desktop.
Save Eugeny/955476 to your computer and use it in GitHub Desktop.
>>> d = datetime.datetime.utcfromtimestamp(0)
>>> time.mktime(d.utctimetuple()) - time.timezone
-3600.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment