mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Closes issue #22791: Improved datetime from timestamp methods documentation.
Original patch by Akira Li.
This commit is contained in:
parent
3de4aae1d0
commit
e2e178e081
3 changed files with 13 additions and 8 deletions
|
@ -5020,8 +5020,7 @@ static PyMethodDef datetime_methods[] = {
|
|||
|
||||
{"utcfromtimestamp", (PyCFunction)datetime_utcfromtimestamp,
|
||||
METH_VARARGS | METH_CLASS,
|
||||
PyDoc_STR("timestamp -> UTC datetime from a POSIX timestamp "
|
||||
"(like time.time()).")},
|
||||
PyDoc_STR("Construct a naive UTC datetime from a POSIX timestamp.")},
|
||||
|
||||
{"strptime", (PyCFunction)datetime_strptime,
|
||||
METH_VARARGS | METH_CLASS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue