如何将 DateTimeOffset 转换为 Twitter 日期/时间?
如何将 DateTimeOffset.Now
转换为 twitter 兼容的日期/时间?
Twitter 示例:
<created_at>Tue Apr 07 22:52:51 +0000 2009</created_at>
干杯 :)
How can I convert a DateTimeOffset.Now
into a twitter-compatible date/time?
Twitter example:
<created_at>Tue Apr 07 22:52:51 +0000 2009</created_at>
cheers :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这几乎做到了:
...但它最终以时区位中的冒号结束。我现在正在考虑删除它。
编辑:布莱奇。我现在能做的就是:
这太丑了。请注意,这是一个非常丑陋的日期和时间格式。 Twitter 真的没有更明智的格式可供您使用吗?
This nearly does it:
... but it ends up with a colon in the time zone bit. I'm looking at removing that now.
EDIT: Blech. The best I can do at the moment is this:
That's incredibly ugly. Mind you, this is a really ugly date and time format. Does Twitter really not have a more sensible format you can use?