美文网首页
Python 时间格式

Python 时间格式

作者: 菜鸟瞎编 | 来源:发表于2019-08-23 13:37 被阅读0次

python %z 能以 hour/minute offset 输出时区信息。 'Thu, 28 Jun 2001 14:17:15 +0000'

The use of %Z is now deprecated, but the %z escape that expands to the preferred hour/minute offset is not supported by all ANSI C libraries. Also, a strict reading of the original 1982 RFC 822 standard calls for a two-digit year (%y rather than %Y), but practice moved to 4-digit years long before the year 2000. After that, RFC 822 became obsolete and the 4-digit year has been first recommended by RFC 1123 and then mandated by RFC 2822.

https://docs.python.org/2/library/time.html

相关文章

网友评论

      本文标题:Python 时间格式

      本文链接:https://www.haomeiwen.com/subject/gonzsctx.html