@@ -841,7 +841,7 @@ Other constructors, all class methods:
841841 Return a :class: `datetime ` corresponding to a *date_string * in one of the
842842 formats emitted by :meth: `date.isoformat ` and :meth: `datetime.isoformat `.
843843 Specifically, this function supports strings in the format(s)
844- ``YYYY-MM-DD[*HH[:MM[:SS[.mmm[mmm ]]]][+HH:MM[:SS[.ffffff]]]] ``,
844+ ``YYYY-MM-DD[*HH[:MM[:SS[.fff[fff ]]]][+HH:MM[:SS[.ffffff]]]] ``,
845845 where ``* `` can match any single character.
846846
847847 .. caution ::
@@ -1215,13 +1215,13 @@ Instance methods:
12151215.. method :: datetime.isoformat(sep='T', timespec='auto')
12161216
12171217 Return a string representing the date and time in ISO 8601 format,
1218- YYYY-MM-DDTHH:MM: SS.mmmmmm or, if :attr: `microsecond ` is 0,
1218+ YYYY-MM-DDTHH:MM: SS.ffffff or, if :attr: `microsecond ` is 0,
12191219 YYYY-MM-DDTHH:MM: SS
12201220
1221- If :meth: `utcoffset ` does not return ``None ``, a 6-character string is
1222- appended, giving the UTC offset in (signed) hours and minutes :
1223- YYYY-MM-DDTHH:MM: SS.mmmmmm +HH:MM or, if :attr: `microsecond ` is 0
1224- YYYY-MM-DDTHH:MM: SS+HH:MM
1221+ If :meth: `utcoffset ` does not return ``None ``, a string is
1222+ appended, giving the UTC offset:
1223+ YYYY-MM-DDTHH:MM: SS.ffffff +HH:MM[:SS[.ffffff]] or, if :attr: `microsecond `
1224+ is 0 YYYY-MM-DDTHH:MM: SS+HH:MM[:SS[.ffffff]].
12251225
12261226 The optional argument *sep * (default ``'T' ``) is a one-character separator,
12271227 placed between the date and time portions of the result. For example,
@@ -1245,7 +1245,7 @@ Instance methods:
12451245 in HH:MM: SS format.
12461246 - ``'milliseconds' ``: Include full time, but truncate fractional second
12471247 part to milliseconds. HH:MM: SS.sss format.
1248- - ``'microseconds' ``: Include full time in HH:MM: SS.mmmmmm format.
1248+ - ``'microseconds' ``: Include full time in HH:MM: SS.ffffff format.
12491249
12501250 .. note ::
12511251
@@ -1522,7 +1522,7 @@ Other constructor:
15221522
15231523 Return a :class: `time ` corresponding to a *time_string * in one of the
15241524 formats emitted by :meth: `time.isoformat `. Specifically, this function supports
1525- strings in the format(s) ``HH[:MM[:SS[.mmm[mmm ]]]][+HH:MM[:SS[.ffffff]]] ``.
1525+ strings in the format(s) ``HH[:MM[:SS[.fff[fff ]]]][+HH:MM[:SS[.ffffff]]] ``.
15261526
15271527 .. caution ::
15281528
@@ -1548,10 +1548,10 @@ Instance methods:
15481548
15491549.. method :: time.isoformat(timespec='auto')
15501550
1551- Return a string representing the time in ISO 8601 format, HH:MM: SS.mmmmmm or, if
1551+ Return a string representing the time in ISO 8601 format, HH:MM: SS.ffffff or, if
15521552 :attr: `microsecond ` is 0, HH:MM: SS If :meth: `utcoffset ` does not return ``None ``, a
1553- 6-character string is appended, giving the UTC offset in (signed) hours and
1554- minutes: HH :MM: SS.mmmmmm+HH:MM or, if self.microsecond is 0, HH:MM: SS+HH:MM
1553+ string is appended, giving the UTC offset: HH :MM: SS.ffffff+HH:MM[:SS[.ffffff]]
1554+ or, if self.microsecond is 0, HH:MM: SS+HH:MM[:SS[.ffffff]].
15551555
15561556 The optional argument *timespec * specifies the number of additional
15571557 components of the time to include (the default is ``'auto' ``).
@@ -1565,7 +1565,7 @@ Instance methods:
15651565 in HH:MM: SS format.
15661566 - ``'milliseconds' ``: Include full time, but truncate fractional second
15671567 part to milliseconds. HH:MM: SS.sss format.
1568- - ``'microseconds' ``: Include full time in HH:MM: SS.mmmmmm format.
1568+ - ``'microseconds' ``: Include full time in HH:MM: SS.ffffff format.
15691569
15701570 .. note ::
15711571
@@ -2091,9 +2091,10 @@ format codes.
20912091| | number, zero-padded on the | 999999 | |
20922092| | left. | | |
20932093+-----------+--------------------------------+------------------------+-------+
2094- | ``%z `` | UTC offset in the form | (empty), +0000, -0400, | \( 6) |
2095- | | ±HHMM[SS] (empty string if the | +1030 | |
2096- | | object is naive). | | |
2094+ | ``%z `` | UTC offset in the form | (empty), +0000, | \( 6) |
2095+ | | ±HHMM[SS[.ffffff]] (empty | -0400, +1030, | |
2096+ | | string if the object is | +063415, | |
2097+ | | naive). | -030712.345216 | |
20972098+-----------+--------------------------------+------------------------+-------+
20982099| ``%Z `` | Time zone name (empty string | (empty), UTC, EST, CST | |
20992100| | if the object is naive). | | |
@@ -2206,12 +2207,12 @@ Notes:
22062207
22072208 ``%z ``
22082209 :meth: `utcoffset ` is transformed into a string of the form
2209- ±HHMM[SS[.uuuuuu ]], where HH is a 2-digit string giving the number of UTC
2210- offset hours, and MM is a 2-digit string giving the number of UTC offset
2210+ ±HHMM[SS[.ffffff ]], where HH is a 2-digit string giving the number of UTC
2211+ offset hours, MM is a 2-digit string giving the number of UTC offset
22112212 minutes, SS is a 2-digit string giving the number of UTC offset
2212- seconds and uuuuuu is a 2 -digit string giving the number of UTC
2213- offset microseconds. The uuuuuu part is omitted when the offset is a
2214- whole number of minutes and both the uuuuuu and the SS parts are omitted
2213+ seconds and ffffff is a 6 -digit string giving the number of UTC
2214+ offset microseconds. The ffffff part is omitted when the offset is a
2215+ whole number of seconds and both the ffffff and the SS part is omitted
22152216 when the offset is a whole number of minutes. For example, if
22162217 :meth: `utcoffset ` returns ``timedelta(hours=-3, minutes=-30) ``, ``%z `` is
22172218 replaced with the string ``'-0330' ``.
0 commit comments