Skip to content

Commit 3e883c9

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 46bff41 commit 3e883c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ operator
427427
datetime
428428
--------
429429

430-
* Add support for ISO 8601 basic format for the following methods:
430+
* Add support for the ISO 8601 basic format for the following methods:
431431

432432
- :meth:`date.isoformat <datetime.date.isoformat>`
433433
- :meth:`datetime.isoformat <datetime.datetime.isoformat>`

Lib/_pydatetime.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,13 +1111,13 @@ def __format__(self, fmt):
11111111
return str(self)
11121112

11131113
def isoformat(self, basic=False):
1114-
"""Return the date formatted according to ISO.
1114+
"""Return the date formatted according to ISO 8601.
11151115
11161116
This is 'YYYY-MM-DD' or 'YYYYMMDD' if *basic* is true.
11171117
11181118
References:
1119-
- http://www.w3.org/TR/NOTE-datetime
1120-
- http://www.cl.cam.ac.uk/~mgk25/iso-time.html
1119+
- https://www.w3.org/TR/NOTE-datetime
1120+
- https://www.cl.cam.ac.uk/~mgk25/iso-time.html
11211121
"""
11221122
if basic:
11231123
return f"{self._year:04d}{self._month:02d}{self._day:02d}"
@@ -2138,7 +2138,7 @@ def isoformat(self, sep='T', timespec='auto', basic=False):
21382138
The full format looks like 'YYYY-MM-DD HH:MM:SS.mmmmmm'.
21392139
By default, the fractional part is omitted if self.microsecond == 0.
21402140
2141-
If *basic* is true, separators ':' and '-' are removed from the output.
2141+
If *basic* is true, separators ':' and '-' are omitted.
21422142
21432143
If self.tzinfo is not None, the UTC offset is also attached, giving
21442144
giving a full format of 'YYYY-MM-DD HH:MM:SS.mmmmmm+HH:MM'.

0 commit comments

Comments
 (0)