pandas.Period.now
pandas 3.1.1 · Arrays, scalars, and data types · method
Get the current time in the requested timezone, or the current period at the supplied frequency for Period.
Call syntax
Period.now(freq)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
freq |
Required Positional or keyword |
str, DateOffset Specify the frequency or offset, such as "D" for a day or "MS" for a calendar month start. |