Created
August 12, 2015 06:34
-
-
Save liushuaikobe/5f7e0660ad5669200e25 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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