Skip to content

Commit be7526a

Browse files
check for attribute
1 parent e16a327 commit be7526a

File tree

1 file changed

+13
-46
lines changed

1 file changed

+13
-46
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 13 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -633,52 +633,6 @@ cdef class _Timestamp(ABCTimestamp):
633633
field, freq_name, month_kw, self._creso)
634634
return out[0]
635635

636-
def max(self) -> "Timestamp":
637-
"""
638-
A constant that represents the maximum valid date and time value.
639-
640-
This property returns the highest datetime value that can be represented
641-
by a pandas.Timestamp object, which is equivalent to
642-
pd.Timestamp('2262-04-11 23:47:16.854775807').
643-
644-
Returns
645-
-------
646-
Timestamp
647-
The maximum valid datetime value for a Timestamp object.
648-
649-
See Also
650-
--------
651-
Timestamp.min : Return the minimum valid date and time value for Timestamp.
652-
653-
Examples
654-
--------
655-
>>> pd.Timestamp.max
656-
Timestamp('2262-04-11 23:47:16.854775807')
657-
"""
658-
659-
def min(self) -> "Timestamp":
660-
"""
661-
Return the minimum representable Timestamp.
662-
663-
This property returns the earliest datetime value that can be represented
664-
by a pandas.Timestamp object, which is equivalent to
665-
pd.Timestamp('1677-09-21 00:12:43.145224193').
666-
667-
Returns
668-
-------
669-
Timestamp
670-
The earliest representable Timestamp.
671-
672-
See Also
673-
--------
674-
Timestamp.max : Return the maximum representable Timestamp.
675-
676-
Examples
677-
--------
678-
>>> pd.Timestamp.min
679-
Timestamp('1677-09-21 00:12:43.145224193')
680-
"""
681-
682636
@property
683637
def is_month_start(self) -> bool:
684638
"""
@@ -1741,6 +1695,19 @@ class Timestamp(_Timestamp):
17411695
datetime-like corresponds to the first (0) or the second time (1)
17421696
the wall clock hits the ambiguous time.
17431697

1698+
Attributes
1699+
----------
1700+
max : Timestamp
1701+
A constant that represents the maximum valid date and time value.
1702+
This property returns the highest datetime value that can be represented
1703+
by a pandas.Timestamp object, which is equivalent to
1704+
pd.Timestamp('2262-04-11 23:47:16.854775807').
1705+
min : Timestamp
1706+
A constant that represents the minimum valid date and time value.
1707+
This property returns the earliest datetime value that can be represented
1708+
by a pandas.Timestamp object, which is equivalent to
1709+
pd.Timestamp('1677-09-21 00:12:43.145224193').
1710+
17441711
See Also
17451712
--------
17461713
Timedelta : Represents a duration, the difference between two dates or times.

0 commit comments

Comments
 (0)