@@ -0,0 +1,651 @@
+import sys%0Afrom datetime import datetime%0A%0A# use like:%0A# twilight stream --filter %22locations=-180,-90,180,90%22 %7C grep --line-buffered -v '%5E%7B%22delete%22:' %7C jq --unbuffered -r .id_str %7C gstdbuf -o0 head -1000 %7C python -u /Users/chbrown/github/sandbox/python/twitter_status_ids.py%0A%0ATWEPOCH = 1288834974657%0A%0Awhile True:%0A    line = sys.stdin.readline()%0A    if not line: break # EOF%0A%0A    status_id = int(line)%0A    ticks = (status_id %3E%3E 22) + TWEPOCH%0A%0A    print ticks%0A    # print datetime.fromtimestamp(ticks / 1000.0)%0A%0A    # print out only the milliseconds part%0A    # print ticks %25 1000%0A%0A    # sys.stdout.write('%25d%5Cn' %25 (ticks %25 1000))%0A    # sys.stdout.flush()%0A

Add python script that converts Twitter IDs to timestamps