[issue20281] time.strftime %z format specifier is the same as %Z
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 <http://bugs.python.org/issue20281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20281] time.strftime %z format specifier is the same as %Z
Mike Owens added the comment: Expected output should be -0700. I checked Python 3.3.1 and 2.7.4 on Linux and the output is as expected. -- ___ Python tracker <http://bugs.python.org/issue20281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20281] time.strftime %z format specifier is the same as %Z
Mike Owens added the comment: Documentation doesn't have a foot note for either %z or %Z but there is generic footnote talking about C lib behavior and that %z is deprecated. I guess if there were a foot note in the table for %z that would save some time for everyone. -- ___ Python tracker <http://bugs.python.org/issue20281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20281] time.strftime %z format specifier is the same as %Z
Mike Owens added the comment: The datetime.strftime function produces no output for %z or %Z. Very irritating. -- ___ Python tracker <http://bugs.python.org/issue20281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20281] time.strftime %z format specifier is the same as %Z
Mike Owens added the comment: I'm looking right at the 3.3 docs right now. %z is in the table. 8.1.8. strftime() and strptime() Behavior -- ___ Python tracker <http://bugs.python.org/issue20281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com