Skip to content

Commit ea78e0f

Browse files
committed
Update C extension docstrings with format codes documentation
1 parent 5b2924d commit ea78e0f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Modules/_datetimemodule.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,6 +3468,9 @@ datetime.date.strptime
34683468
/
34693469
34703470
Parse string according to the given date format (like time.strptime()).
3471+
3472+
For a list of supported format codes, see the documentation:
3473+
https://docs.python.org/3/library/datetime.html#format-codes
34713474
[clinic start generated code]*/
34723475

34733476
static PyObject *
@@ -3608,6 +3611,9 @@ datetime.date.strftime
36083611
Format using strftime().
36093612
36103613
Example: "%d/%m/%Y, %H:%M:%S".
3614+
3615+
For a list of supported format codes, see the documentation:
3616+
https://docs.python.org/3/library/datetime.html#format-codes
36113617
[clinic start generated code]*/
36123618

36133619
static PyObject *
@@ -4711,6 +4717,9 @@ datetime.time.strptime
47114717
/
47124718
47134719
Parse string according to the given time format (like time.strptime()).
4720+
4721+
For a list of supported format codes, see the documentation:
4722+
https://docs.python.org/3/library/datetime.html#format-codes
47144723
[clinic start generated code]*/
47154724

47164725
static PyObject *
@@ -4891,6 +4900,8 @@ datetime.time.strftime
48914900
Format using strftime().
48924901
48934902
The date part of the timestamp passed to underlying strftime should not be used.
4903+
For a list of supported format codes, see the documentation:
4904+
https://docs.python.org/3/library/datetime.html#format-codes
48944905
[clinic start generated code]*/
48954906

48964907
static PyObject *
@@ -5787,6 +5798,8 @@ datetime.datetime.strptime
57875798
/
57885799
57895800
Parse string according to the given date and time format (like time.strptime()).
5801+
For a list of supported format codes, see the documentation:
5802+
https://docs.python.org/3/library/datetime.html#format-codes
57905803
[clinic start generated code]*/
57915804

57925805
static PyObject *

0 commit comments

Comments
 (0)