pandas.Timestamp.month#
- Timestamp.month#
Return the month of the Timestamp.
- Returns:
- int
The month of the Timestamp.
See also
Timestamp.dayReturn the day of the Timestamp.
Timestamp.yearReturn the year of the Timestamp.
Examples
>>> ts = pd.Timestamp("2024-08-31 16:16:30") >>> ts.month 8