Skip to content

Instantly share code, notes, and snippets.

@liushuaikobe
Created August 12, 2015 06:34
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 liushuaikobe/5f7e0660ad5669200e25 to your computer and use it in GitHub Desktop.
Save liushuaikobe/5f7e0660ad5669200e25 to your computer and use it in GitHub Desktop.
from datetime import datetime
import time
dt = datetime(2015, 8, 1, 0, 0, 0, 0)
timestamp = (dt - datetime(1970, 1, 1)).total_seconds()
print timestamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment