VOOZH about

URL: https://www.geeksforgeeks.org/pandas/pandas-series-dt-tz_convert/

⇱ Pandas Series dt.tz_convert | Change Timezone in DateTime Series - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pandas Series dt.tz_convert | Change Timezone in DateTime Series

Last Updated : 11 Jul, 2025

The dt.tz_convert() method converts tz-aware DateTime Series object from one time zone to another.

Example

Output:

👁 dt.tz_convert method output

Syntax

Syntax: Series.dt.tz_convert(tz) 

Parameter 

  • tz: Time zone to convert timestamps to. 

Returns: series of same type as input

How to Convert Timezones For tz-aware DateTime Series

To convert timezones from one timezone to another in a tz-aware DateTime Series we use the dt.tz_convert method of the Pandas library in Python.

Let us understand it better with an example:

Example:

Use the Series.dt.tz_convert() function to convert the timezone of the timestamps in the given series object.

Output :

👁 datetime series created

Now we will use the dt.tz_convert() function to convert the timestamps in the given series object to 'Asia/Calcutta'.

Output :

👁 timezone changed

As we can see in the output, the dt.tz_convert() function has successfully converted the timezone of the timestamps in the given series object to the target timezone.

Comment

Explore