Skip to content

Instantly share code, notes, and snippets.

@andrewgiessel
Created June 15, 2015 15:34
Show Gist options
  • Save andrewgiessel/b04e6e91a8470f84480c to your computer and use it in GitHub Desktop.
Save andrewgiessel/b04e6e91a8470f84480c to your computer and use it in GitHub Desktop.
datetime to timestamp
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