pandas.Timestamp.today — pandas 3.0.0.dev0+2104.ge637b4290d documentation (original) (raw)
- API reference
- pandas arrays, scalars, and data types
- pandas.Timestamp.today
classmethod Timestamp.today(tz=None)#
Return the current time in the local timezone.
This differs from datetime.today() in that it can be localized to a passed timezone.
Parameters:
tzstr or timezone object, default None
Timezone to localize to.
See also
Returns the current local date.
Returns current time with optional timezone.
A class representing a specific timestamp.
Examples
pd.Timestamp.today()
Timestamp('2020-11-16 22:37:39.969883')
Analogous for pd.NaT
:
pd.NaT.today() NaT