File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
132
132
-i " pandas.TimedeltaIndex.nanoseconds SA01" \
133
133
-i " pandas.TimedeltaIndex.seconds SA01" \
134
134
-i " pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
135
- -i " pandas.Timestamp.fold GL08" \
136
135
-i " pandas.Timestamp.max PR02" \
137
136
-i " pandas.Timestamp.min PR02" \
138
137
-i " pandas.Timestamp.nanosecond GL08" \
Original file line number Diff line number Diff line change @@ -984,6 +984,30 @@ cdef class _Timestamp(ABCTimestamp):
984
984
"""
985
985
return super().day
986
986
987
+ @property
988
+ def fold(self) -> int:
989
+ """
990
+ Return the fold value of the Timestamp.
991
+
992
+ Returns
993
+ -------
994
+ int
995
+ The fold value of the Timestamp, where 0 indicates the first occurrence
996
+ of the ambiguous time, and 1 indicates the second.
997
+
998
+ See Also
999
+ --------
1000
+ Timestamp.dst : Return the daylight saving time (DST) adjustment.
1001
+ Timestamp.tzinfo : Return the timezone information associated.
1002
+
1003
+ Examples
1004
+ --------
1005
+ >>> ts = pd.Timestamp(" 2024-11-03 01:30:00" )
1006
+ >>> ts.fold
1007
+ 0
1008
+ """
1009
+ return super().fold
1010
+
987
1011
@property
988
1012
def month(self) -> int:
989
1013
"""
You can’t perform that action at this time.
0 commit comments