10000 gh-132642: Add documentation on how to render human-readable timedelta object by KentaroJay · Pull Request #133825 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132642: Add documentation on how to render human-readable timedelta object #133825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 10, 2025
Prev Previous commit
Next Next commit
Update Doc/library/datetime.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
KentaroJay and picnixz authored May 10, 2025
commit 118ef8777c0dff09a97da2dcb5674e2f2ed5c236
4 changes: 2 additions & 2 deletions Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ A :class:`timedelta` object represents a duration, the difference between two
>>> (d.days, d.seconds, d.microseconds)
(-1, 86399, 999999)

The string representation of :class:`!timedelta` objects can be confusing,
the following recipe can be used to produce a more readable format:
Since the string representation of :class:`!timedelta` objects can be confusing,
use the following recipe to produce a more readable format:

.. code-block:: pycon

Expand Down
Loading
0