RFC 3339 - Date and Time on the Internet: Timestamps
互联网上的日期和时间: 时间戳
发布日期: 2002年7月
状态: 标准跟踪协议 (Standards Track)
作者: G. Klyne (Clearswift Corporation), C. Newman (Sun Microsystems)
Status of this Memo (本备忘录状态)
本文档为互联网社区指定了互联网标准跟踪协议,并请求讨论和改进建议。有关本协议的标准化状态,请参阅当前版本的"互联网官方协议标准" (STD 1)。本备忘录的分发不受限制。
Copyright Notice (版权声明)
Copyright (C) The Internet Society (2002). All Rights Reserved.
Abstract (摘要)
本文档定义了一种在互联网协议中使用的日期和时间格式,它是ISO 8601标准使用格里高利历 (Gregorian Calendar) 表示日期和时间的一个配置文件 (Profile)。
目录 (Table of Contents)
- 1. Introduction (简介)
- 2. Definitions (定义)
- 3. Two Digit Years (两位数年份)
- 4. Local Time (本地时间)
- 4.1 Coordinated Universal Time (UTC)
- 4.2 Local Offsets
- 4.3 Unknown Local Offset Convention
- 4.4 Unqualified Local Time
- 5. Date and Time format (日期和时间格式)
- 5.1 Ordering
- 5.2 Human Readability
- 5.3 Rarely Used Options
- 5.4 Redundant Information
- 5.5 Simplicity
- 5.6 Internet Date/Time Format
- 5.7 Restrictions
- 5.8 Examples
- 6. References (参考文献)
- 7. Security Considerations (安全考虑)
附录 (Appendices)
- Appendix A. ISO 8601 Collected ABNF
- Appendix B. Day of the Week
- Appendix C. Leap Years
- Appendix D. Leap Seconds
相关资源 (Related Resources)
- 官方原文: RFC 3339 (TXT)
- 官方页面: RFC 3339 DataTracker
- 勘误表: RFC Editor Errata
快速参考 (Quick Reference)
标准格式
YYYY-MM-DDTHH:MM:SS.sssZ
YYYY-MM-DDTHH:MM:SS.sss±HH:MM
示例
1985-04-12T23:20:50.52Z
1996-12-19T16:39:57-08:00
1990-12-31T23:59:60Z (闰秒)
1937-01-01T12:00:27.87+00:20
重要提示: 这是互联网协议中表示时间戳的标准格式,被广泛应用于HTTP、JSON、XML等协议和数据格式中。