pandas.Period.now
- classmethodPeriod.now(freq)
-
Return the period of now’s date.
- Parameters:
-
- freq:str, BaseOffset
-
Frequency to use for the returned period.
Examples
>>> pd.Period.now('h') Period('2023-06-12 11:00', 'h')
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Period.now.html