Skip to content

Instantly share code, notes, and snippets.

@DerMitch
Created December 31, 2013 23:28
Show Gist options
  • Save DerMitch/8203326 to your computer and use it in GitHub Desktop.
Save DerMitch/8203326 to your computer and use it in GitHub Desktop.
2013 vs 2014
>>> datetime(2013, 12, 31, 23, 59, 59).strftime('%s')
'1388530799'
>>> datetime(2014, 1, 1, 0, 0, 0).strftime('%s')
'1388530800'
>>> # such change
>>> # much second
>>> # cool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment