pandas.Timestamp.astimezone

pandas 3.1.1 · Arrays, scalars, and data types · method

Represent the same timestamp in another timezone.

Call syntax

Timestamp.astimezone(tz)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
tz Required
Positional or keyword
str, zoneinfo.ZoneInfo, pytz.timezone, dateutil.tz.tzfile or None

Supply a timezone name or timezone object.

Returns

converted · Timestamp