Is there an easy way to convert the time stamp you get from twitter into unix time or minutes since now? I could parse through the string and convert everything myself but I'm hoping there is a way to convert that doesn't need that. Here is an example of a created_at element with a time stamp.
Sun Mar 18 06:42:26 +0000 2007
You can use NSDateFormatter with something like this :
I have been strugeling with this all day, but this thread helped me to find a solution.
This is how I convert the Twitter "created_at" attribute to a NSDATE;
I hope someone will find this helpful.
Sounds like you need something like: ISO 8601 parser and unparser.
File a feature request with Apple and let them know you want this functionality on the iPhone. NSDateFormatter provides a legacy init method that takes a boolean flag indicating you want it to parse natural language, but it's only available on OS X. Wil Shipley wrote an interesting post a while back about this functionality in the context of heuristics and human factors.
It doesn't seem likely that Apple will provide this functionality as this note would indicate from the NSDateFormatter docs:
In other words, I think you'll have to parse it yourself.