Skip to content

Instantly share code, notes, and snippets.

@mobilestack
Created September 1, 2014 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mobilestack/ff1ee0b9657e762910f1 to your computer and use it in GitHub Desktop.
Save mobilestack/ff1ee0b9657e762910f1 to your computer and use it in GitHub Desktop.
from python datetime object to int
tt = target_user.created_time
tt_int = time.mktime(tt.timetuple())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment