pandas.PeriodIndex.start_time #

属性 周期索引。开始时间[来源] #

获取该期间开始的时间戳。

返回
时间戳

也可以看看

Period.end_time

返回结束时间戳。

Period.dayofyear

返回一年中的日期。

Period.daysinmonth

返回该月的天数。

Period.dayofweek

返回星期几。

例子

>>> period = pd.Period('2012-1-1', freq='D')
>>> period
Period('2012-01-01', 'D')
>>> period.start_time
Timestamp('2012-01-01 00:00:00')
>>> period.end_time
Timestamp('2012-01-01 23:59:59.999999999')