Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What date RFC does Twitter use?

Doc use : Tue Apr 07 22:52:51 +0000 2009 as an example.
Can anyone identify the rfc? Cheers

like image 426
mhughes Avatar asked May 27 '10 00:05

mhughes


1 Answers

I can't say "there is no standard of that format" of course, because I very well may have just missed it. But when I started working with the Twitter API I did search for awhile to find the standard they are using and couldn't find a match. I ended up having to define a custom format (c#):

DateTime.ParseExact(twitterDateString,
                    "ddd MMM dd HH:mm:ss %K yyyy",
                    CultureInfo.InvariantCulture.DateTimeFormat);
like image 75
Rex M Avatar answered Nov 09 '22 23:11

Rex M