Skip to content

Commit 5468fc5

Browse files
added link to timestamp limitations in docstring
1 parent 3aa78cf commit 5468fc5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/tseries/tools.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,10 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
267267
0 2015-02-04
268268
1 2016-03-05
269269
dtype: datetime64[ns]
270-
271-
Since pandas represents timestamps in nanosecond resolution, the timespan
272-
that can be represented using a 64-bit integer is limited to approximately
273-
584 years.
274-
If a date that does not meet timestamp limitations, passing errors='ignore'
270+
271+
If a date that does not meet `timestamp limitations
272+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html
273+
#timeseries-timestamp-limits>`_, passing errors='ignore'
275274
will simply return the original input instead of raising any exception.
276275
Passing errors='coerce' will force to NaT. Furthermore this will force
277276
non-dates to NaT as well.

0 commit comments

Comments
 (0)