Skip to content

Commit 6dbc137

Browse files
committed
Updates docs
1 parent ea3fa1c commit 6dbc137

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

docs/_docs/interval.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,6 @@ The ``Interval`` class brings more properties than the default ``days``, ``secon
8686
it.microseconds
8787
1234
8888
89-
.. note::
90-
91-
You might notice that the value of the ``seconds`` property is different that
92-
the one you would obtain from the standard ``timedelta`` class.
93-
94-
.. code-block:: python
95-
96-
from datetime import timedelta
97-
98-
it = timedelta(days=1177, seconds=7284, microseconds=1234)
99-
100-
it.seconds
101-
7284
102-
103-
The reason for that is the fact that ``pendulum`` provides the ``minutes`` and ``hours``
104-
units, so ``seconds`` is just the remaining seconds after the computation of hours and minutes:
105-
106-
.. code-block:: python
107-
108-
import pendulum
109-
110-
it = pendulum.interval(days=1177, seconds=7284, microseconds=1234)
111-
112-
it.hours * 3600 + it.minutes * 60 + it.seconds
113-
7284
114-
11589
If you want to get the total duration of the interval in each supported unit
11690
you can use the appropriate methods.
11791

0 commit comments

Comments
 (0)