문제

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

도움이 되었습니까?

해결책

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);

다른 팁

Neither RFC 2822 nor RFC 3339 allow for separating the year from the month and day like that. If twitter was trying to be compliant, they blew it on the two most relevant IETF standards and on ISO 8601.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top