Skip to content

Commit df25d9f

Browse files
phoflmeeseeksmachine
authored andcommitted
Backport PR pandas-dev#52204: DOC: Update timestamp limitations
1 parent 4fdf0a6 commit df25d9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/source/user_guide/timeseries.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,14 +507,18 @@ used if a custom frequency string is passed.
507507
Timestamp limitations
508508
---------------------
509509

510-
Since pandas represents timestamps in nanosecond resolution, the time span that
510+
The limits of timestamp representation depend on the chosen resolution. For
511+
nanosecond resolution, the time span that
511512
can be represented using a 64-bit integer is limited to approximately 584 years:
512513

513514
.. ipython:: python
514515
515516
pd.Timestamp.min
516517
pd.Timestamp.max
517518
519+
When choosing second-resolution, the available range grows to ``+/- 2.9e11 years``.
520+
Different resolutions can be converted to each other through ``as_unit``.
521+
518522
.. seealso::
519523

520524
:ref:`timeseries.oob`

0 commit comments

Comments
 (0)