Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4d5661

Browse filesBrowse files
committed
Updates based on PR review
1 parent 562d43e commit b4d5661
Copy full SHA for b4d5661

File tree

1 file changed

+6
-6
lines changed
Filter options

1 file changed

+6
-6
lines changed

‎Doc/library/datetime.rst

Copy file name to clipboardExpand all lines: Doc/library/datetime.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Available Types
114114
:noindex:
115115

116116
An idealized time, independent of any particular day, assuming that every day
117-
has exactly ``24 * 60 * 60`` seconds. (There is no notion of "leap seconds" here.)
117+
has exactly ``24*60*60`` seconds. (There is no notion of "leap seconds" here.)
118118
Attributes: :attr:`hour`, :attr:`minute`, :attr:`second`, :attr:`microsecond`,
119119
and :attr:`.tzinfo`.
120120

@@ -213,10 +213,10 @@ A :class:`timedelta` object represents a duration, the difference between two
213213
Only *days*, *seconds* and *microseconds* are stored internally.
214214
Arguments are converted to those units:
215215

216-
* A *millisecond* is converted to ``1000`` *microseconds*.
217-
* A *minute* is converted to ``60`` *seconds*.
218-
* An *hour* is converted to ``3600`` *seconds*.
219-
* A *week* is converted to ``7`` *days*.
216+
* A *millisecond* is converted to 1000 *microseconds*.
217+
* A *minute* is converted to 60 *seconds*.
218+
* An *hour* is converted to 3600 *seconds*.
219+
* A *week* is converted to 7 *days*.
220220

221221
and days, seconds and microseconds are then normalized so that the
222222
representation is unique, with
@@ -1740,7 +1740,7 @@ day, and subject to adjustment via a :class:`tzinfo` object.
17401740
* ``fold in [0, 1]``.
17411741

17421742
If an argument outside those ranges is given, :exc:`ValueError` is raised. All
1743-
default to ``0`` except *tzinfo*, which defaults to ``None``.
1743+
default to ``0`` except *tzinfo*, which defaults to :const:`None`.
17441744

17451745
Class attributes:
17461746

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.