pandas.Period.now #

类方法 期间。现在(频率)#

返回当前日期的时间段。

参数:
freq str,BaseOffset

返回期间使用的频率。

例子

>>> pd.Period.now('h')  
Period('2023-06-12 11:00', 'h')