New submission from Raphael <rafal1.1...@o2.pl>:
In the time library documentation (https://docs.python.org/3/library/time.html) the directives %G, %V and %u for strftime() are missing, although they work (at least for me in Linux Mint): $ python3 Python 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from time import strftime >>> strftime("%G-W%V-%u") '2021-W42-7' This seems to be officially supported by the datetime library since https://bugs.python.org/issue12006 or at least there is a section for the ISO 8601 week directives in the datetime documentation: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes I would like to see the same for the time library. ---------- components: Library (Lib) messages: 404933 nosy: Raphael priority: normal severity: normal status: open title: Please official support %G, %V and %u directives in time library type: enhancement versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45599> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com