pandas.Timestamp.astimezone — pandas 1.0.5 documentation (original) (raw)

Timestamp. astimezone(self, tz)

Convert tz-aware Timestamp to another time zone.

Parameters

tzstr, pytz.timezone, dateutil.tz.tzfile or None

Time zone for time which Timestamp will be converted to. None will remove timezone holding UTC time.

Returns

convertedTimestamp

Raises

TypeError

If Timestamp is tz-naive.