Skip to content

Instantly share code, notes, and snippets.

@shogo82148
Created January 11, 2012 04:20
Show Gist options
  • Save shogo82148/1592986 to your computer and use it in GitHub Desktop.
Save shogo82148/1592986 to your computer and use it in GitHub Desktop.
Convert Twitter Status ID to Date and Time
import time
status_id = int(raw_input('input status id:'))
timestamp = (status_id>>22) + 1288834974657
print time.ctime(timestamp/1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment