pandas.Timestamp.fromtimestamp
pandas 3.1.1 · Arrays, scalars, and data types · method
Create a timestamp from POSIX seconds, interpreted in the supplied timezone or local time.
Call syntax
Timestamp.fromtimestamp(ts, tz=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
ts |
Required Positional or keyword |
float |
tz |
Optional Positional or keyword Default None |
str, zoneinfo.ZoneInfo, pytz.timezone, dateutil.tz.tzfile Supply a timezone name or timezone object. |
Returns
Timestamp