在哪里查找 cocoa / cocoa touch 中使用的日期格式说明符?
例如: [dateFormatter setDateFormat:@"yyyy-MM-DD HH:mm:ss"];
我想某个地方有一个列表显示所有这些日期格式说明符,但找不到任何。 NSDateFormatter 文档似乎没有提到这些。
For example: [dateFormatter setDateFormat:@"yyyy-MM-DD HH:mm:ss"];
I guess there's a list somewhere that shows all those date format specifiers, but can't find any. The NSDateFormatter docs seem to not mention these.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它使用 Unicode 技术标准 #35。
另请注意:NSDateFormatter 在 iOS 4 中发生了很大变化,因此请务必仔细阅读文档。
It uses Unicode Technical Standard #35.
Also note: NSDateFormatter changes a lot with iOS 4, so make sure you read the documentation carefully.