Created
June 15, 2015 15:34
-
-
Save andrewgiessel/b04e6e91a8470f84480c to your computer and use it in GitHub Desktop.
datetime to timestamp
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
import datetime | |
(datetime.datetime.utcnow() - datetime.datetime(1970, 1, 1)).total_seconds() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment