This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Raphael
Recipients Raphael
Date 2021-10-24.13:50:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635083442.63.0.338428674269.issue45599@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-10-24 13:50:43Raphaelsetrecipients: + Raphael
2021-10-24 13:50:42Raphaelsetmessageid: <1635083442.63.0.338428674269.issue45599@roundup.psfhosted.org>
2021-10-24 13:50:42Raphaellinkissue45599 messages
2021-10-24 13:50:42Raphaelcreate