[New-bugs-announce] [issue20281] time.strftime %z format specifier is the same as %Z

Mike Owens report at bugs.python.org
Thu Jan 16 19:35:42 CET 2014


New submission from Mike Owens:

When using strftime from the time module on 64bit Python for Windows the format specifier %z gives the time zone name instead of the time zone offset as stated in the documentation.

eg
>>> strftime("%z")
'US Mountain Standard Time'
>>> strftime("%Z")
'US Mountain Standard Time'

The expected output for my time zone is -7:00.

----------
components: Library (Lib)
messages: 208295
nosy: Mike.Owens
priority: normal
severity: normal
status: open
title: time.strftime %z format specifier is the same as %Z
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20281>
_______________________________________


More information about the New-bugs-announce mailing list