pandas.Timestamp.days_in_month #

时间戳。月内天数#

返回该月的天数。

返回
整数

例子

>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.days_in_month
31