Twitter使用RFC的日期是什么? [英] What date RFC does Twitter use?
本文介绍了Twitter使用RFC的日期是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
文档使用:周二四月22 22:52:51 +0000 2009
为例。
谁能识别出RFC?
干杯
Doc use : Tue Apr 07 22:52:51 +0000 2009
as an example.
Can anyone identify the rfc?
Cheers
推荐答案
我当然不能说没有这种格式的标准,因为我非常可能只是错过了它。但是,当我开始使用Twitter API时,确实做了一段时间搜索以找到他们使用的标准,但找不到匹配项。我最终不得不定义一个自定义格式(c#):
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);
这篇关于Twitter使用RFC的日期是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文