Skip to content

Instantly share code, notes, and snippets.

@tux-00
Last active March 20, 2017 13:01
Show Gist options
  • Save tux-00/17825e43de4feee3f094c1660a57d848 to your computer and use it in GitHub Desktop.
Save tux-00/17825e43de4feee3f094c1660a57d848 to your computer and use it in GitHub Desktop.
Convert date to POSIX timestamp
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