pandas.Timestamp.now — pandas 3.0.0rc0+52.gb43b95d2b4 documentation (original) (raw)
classmethod Timestamp.now(tz=None)#
Return new Timestamp object representing current time local to tz.
This method returns a new Timestamp object that represents the current time. If a timezone is provided, either through a timezone object or an IANA standard timezone identifier, the current time will be localized to that timezone. Otherwise, it returns the current local time.
Parameters:
tzstr or timezone object, default None
Timezone to localize to.
Examples
pd.Timestamp.now() Timestamp('2020-11-16 22:06:16.378782')
If you want a specific timezone, in this case ‘Brazil/East’:
pd.Timestamp.now('Brazil/East') Timestamp('2025-11-11 22:17:59.609943-03:00)
Analogous for pd.NaT: