Twitter 使用什么日期的 RFC? [英] What date RFC does Twitter use?

查看:15
本文介绍了Twitter 使用什么日期的 RFC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档使用:2009 年 4 月 7 日星期二 22:52:51 +0000举个例子.
谁能识别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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆