pandas.Period.now#

Period.now()#

Return the period of now’s date.

Parameters:
freqstr, BaseOffset

Frequency to use for the returned period.

Examples

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