-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Please officially support %G, %V and %u directives in time library #89762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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: I would like to see the same for the time library. |
…ythonGH-124572) (cherry picked from commit 85799f1) Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
…ythonGH-124572) (cherry picked from commit 85799f1) Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Thanks for the report, @raphael, and thanks for the patch @rruuaanng. These format specifiers are now documented in the |
Uh oh!
There was an error while loading. Please reload this page.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: