Created
November 19, 2012 19:27
-
-
Save markchadwick/4113087 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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