diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 540bd59cd5924..863651b2792ca 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -212,15 +212,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.max PR02" \ -i "pandas.Timestamp.microsecond GL08" \ -i "pandas.Timestamp.min PR02" \ - -i "pandas.Timestamp.minute GL08" \ - -i "pandas.Timestamp.month GL08" \ -i "pandas.Timestamp.month_name SA01" \ - -i "pandas.Timestamp.nanosecond GL08" \ -i "pandas.Timestamp.normalize SA01" \ -i "pandas.Timestamp.quarter SA01" \ -i "pandas.Timestamp.replace PR07,SA01" \ -i "pandas.Timestamp.resolution PR02" \ - -i "pandas.Timestamp.second GL08" \ -i "pandas.Timestamp.strptime PR01,SA01" \ -i "pandas.Timestamp.timestamp SA01" \ -i "pandas.Timestamp.timetuple SA01" \ diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 369184d9df40c..9822792865f97 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1393,6 +1393,14 @@ class Timestamp(_Timestamp): -------- Timedelta : Represents a duration, the difference between two dates or times. datetime.datetime : Python datetime.datetime object. + Timestamp.month : Returns the month value of the given Timestamp object. + Represented as an int. + Timestamp.minute : Returns the minute value of the given Timestamp object. + Represented as an int. + Timestamp.second : Returns the second value of the given Timestamp object. + Represented as an int. + Timestamp.nanosecond : Returns the nanosecond value of the given Timestamp object. + Represented as an int. Notes -----