pandas.Period.now#

classmethod Period.now(freq)#

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')