Created
January 11, 2012 04:20
-
-
Save shogo82148/1592986 to your computer and use it in GitHub Desktop.
Convert Twitter Status ID to Date and Time
This file contains hidden or 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
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