Skip to content

Instantly share code, notes, and snippets.

@markchadwick
Created November 19, 2012 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markchadwick/4113087 to your computer and use it in GitHub Desktop.
Save markchadwick/4113087 to your computer and use it in GitHub Desktop.
>>> from datetime import datetime
>>> import time
>>> d = datetime.utcfromtimestamp(1343793600)
>>> time.mktime(d.timetuple())
1343808000.0
>>> time.mktime(d.utctimetuple())
1343811600.0
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment