Skip to content

Instantly share code, notes, and snippets.

@treyhunner
Created March 21, 2013 19:09
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 treyhunner/5215768 to your computer and use it in GitHub Desktop.
Save treyhunner/5215768 to your computer and use it in GitHub Desktop.
January 18, 2038
>>> from time import mktime
>>> from datetime import datetime
>>> mktime(datetime(2038, 1, 18, 19, 14, 30).timetuple())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: mktime argument out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment