Python 时间格式

2019-08-23  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读