Python time altzone() Method
The method altzone() is the 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.
Following is the syntax for altzone() method
This method returns the offset of the local DST timezone, in seconds west of UTC, if one is defined.
The following example shows the usage of altzone() method.
#!/usr/bin/python import time print "time.altzone %d " % time.altzone
Let us compile and run the above program, this will produce the following result: