]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98378: Add small format string example to strftime comments (GH-98379)
authorAlex Zvorygin <grafetu@gmail.com>
Tue, 18 Oct 2022 13:42:10 +0000 (06:42 -0700)
committerGitHub <noreply@github.com>
Tue, 18 Oct 2022 13:42:10 +0000 (06:42 -0700)
commit6ccca69d0d313135b2fbb2aa92c69c315be779c6
tree5627ccca9ee1b925584ee49625e17033596abf94
parent0bbea545e35d17b10ea95d0d10f34e9b5a4e6c53
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.html#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
Lib/datetime.py