]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-98378: Add small format string example to strftime comments (GH-98379)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Oct 2022 12:00:26 +0000 (05:00 -0700)
committerGitHub <noreply@github.com>
Sat, 22 Oct 2022 12:00:26 +0000 (13:00 +0100)
commit9713cace26eac16c03e99c863079561ad7b8df1c
tree7fdf7493209efe8d91212eee8825297e0a60be40
parent3cd39e9399796ebbf54fbc9402a21c98dfddb6a8
[3.11] gh-98378: Add small format string example to strftime comments (GH-98379) (#98395)

gh-98378: Add small format string example to strftime comments (GH-98379)

A small example of what a full date and time would look like would help a lot of developers who may not realize that they should investigate `time.h`'s `strftime`, run `man strftime`, or click through a series of docs on the python docs before they get to the actual [definition here](https://docs.python.org/3/library/datetime.htmlGH-strftime-and-strptime-format-codes) which still doesn't have an obvious copy-pastable example of "what the heck format does this thing actually expect?".

Automerge-Triggered-By: GH:rhettinger
(cherry picked from commit 6ccca69d0d313135b2fbb2aa92c69c315be779c6)

Co-authored-by: Alex Zvorygin <grafetu@gmail.com>
Co-authored-by: Alex Zvorygin <grafetu@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/datetime.py