Skip to content

Commit ab9885e

Browse files
Backport PR pandas-dev#52204 on branch 2.0.x (DOC: Update timestamp limitations) (pandas-dev#52255)
Backport PR pandas-dev#52204: DOC: Update timestamp limitations Co-authored-by: Patrick Hoefler <[email protected]>
1 parent 4fdf0a6 commit ab9885e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/source/user_guide/timeseries.rst

+5-1
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)