[twitter-dev] Which IETF standard has the year appearing after the time?

2010-06-21 Thread Peter Cross
This date is from a call to http://api.twitter.com/1/statuses/user_timeline.xml:

created_atMon Jun 21 19:06:21 + 2010/created_at

begin rant

I've never seen the year come after the time... in any standard date
format.  It's as if someone thought Hmmm... how can we make this date
format more difficult to work with?.  Why, why why?  Now I have to
write a special handler for this one exception.  It's sloppy.

/end rant

This isn't an XML standard date format either.

-ZPC


Re: [twitter-dev] Which IETF standard has the year appearing after the time?

2010-06-21 Thread Andrew W. Donoho

On Jun 21, 2010, at 14:40 , Peter Cross wrote:

 This date is from a call to 
 http://api.twitter.com/1/statuses/user_timeline.xml:
 
 created_atMon Jun 21 19:06:21 + 2010/created_at
 
 begin rant

Elided

 /end rant
 
 This isn't an XML standard date format either.



It is a unicode compatible date. This format string is defined at: 
http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns

Here is the format I use to parse Twitter formats into my local time system: 
EEE MMM dd HH:mm:ss ZZZ y.

Anon,
Andrew

Andrew W. Donoho
Donoho Design Group, L.L.C.
a...@ddg.com, +1 (512) 750-7596

Knowing is not enough; we must apply. 
Willing is not enough; we must do.
-- Johann Wolfgang von Goethe