File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
168
168
-i " pandas.TimedeltaIndex.nanoseconds SA01" \
169
169
-i " pandas.TimedeltaIndex.seconds SA01" \
170
170
-i " pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
171
- -i " pandas.Timestamp.day GL08" \
172
171
-i " pandas.Timestamp.fold GL08" \
173
172
-i " pandas.Timestamp.hour GL08" \
174
173
-i " pandas.Timestamp.max PR02" \
Original file line number Diff line number Diff line change @@ -961,6 +961,29 @@ cdef class _Timestamp(ABCTimestamp):
961
961
"""
962
962
return ((self.month - 1) // 3) + 1
963
963
964
+ @property
965
+ def day(self) -> int:
966
+ """
967
+ Return the day of the Timestamp.
968
+
969
+ Returns
970
+ -------
971
+ int
972
+ The day of the Timestamp.
973
+
974
+ See Also
975
+ --------
976
+ Timestamp.week : Return the week number of the year.
977
+ Timestamp.weekday : Return the day of the week.
978
+
979
+ Examples
980
+ --------
981
+ >>> ts = pd.Timestamp(" 2024-08-31 16:16:30" )
982
+ >>> ts.day
983
+ 31
984
+ """
985
+ return super().day
986
+
964
987
@property
965
988
def week(self) -> int:
966
989
"""
You can’t perform that action at this time.
0 commit comments