pandas.Timestamp.month#

Timestamp.month#

Return the month of the Timestamp.

Returns:
int

The month of the Timestamp.

See also

Timestamp.day

Return the day of the Timestamp.

Timestamp.year

Return the year of the Timestamp.

Examples

>>> ts = pd.Timestamp("2024年08月31日 16:16:30")
>>> ts.month
8
On this page

This Page