Last active
March 20, 2017 13:01
-
-
Save tux-00/17825e43de4feee3f094c1660a57d848 to your computer and use it in GitHub Desktop.
Convert date to POSIX 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
dt = datetime.datetime.strptime("2015-01-08T01:50:11.719671Z", "%Y-%m-%dT%H:%M:%S.%fZ") | |
dt.timestamp() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment