- altzone() is the python attribute of the time module. This returns the offset of the local DST timezone, in seconds west of UTC, if one is defined. This is negative if the local DST timezone is east of UTC (as in Western Europe, including the UK). Only use this if daylight is nonzero.
Syntax-
time.altzone
-This method returns the offset of the local DST timezone, in seconds west of UTC, if one is defined.
program-
import time
print("time altzone is")
print(time.altzone)
time altzone is
-23400