VOOZH about

URL: https://www.geeksforgeeks.org/python/python-time-altzone-method/

⇱ Python time altzone() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python time altzone() Method

Last Updated : 5 Nov, 2021

Python altzone() method is used to return the offset of the local DST timezone, in seconds west of UTC. We can also get the current time between the current time zone and UTC by using the timezone and altzone method.

Syntax:

time.altzone

Example:

Output:

25200

Example: Python program to get the current time between current time zone and UTC by using timezone  and altzone method

Output:

+0000
Comment
Article Tags: