Jan 10 2013

Tweet Timestamps
Comments Off

Back in August, Twitter released their “Rules of the Road” dictating some new Twitter display requirements. One of these requirements is the timestamp format for tweets:

Tweet timestamp should be displayed in the top right corner.
For Tweets that have been sent in the last 24 hours, use the short form timestamp relative to the current time, for example “20s” for a Tweet sent 20 seconds ago, “3m” for 3 minutes ago, “5h” for 5 hours ago.
Tweets older than 24 hours should show a short form date including the day and month, e.g., “6 Jun”.

I’ve created the Tweet Date Format project on GitHub which currently has an Objective-C NSDate category for formatting to the tweet timestamp, and a Rails helper for doing this as well.

Sorry, the comment form is closed at this time.