Latest web development tutorials

Python time altzone () method

description

Python time altzone () function returns the number of seconds the offset of daylight saving time in West Greenwich area. If the area is returned in the Eastern Greenwich negative value (such as Western Europe, including the UK). Enable to use Daylight Saving Time area right.

grammar

altzone () method syntax:

time.altzone

parameter

  • NA.

return value

Back in West Greenwich area of ​​daylight saving time offset in seconds. If the area is returned in the Eastern Greenwich negative value (such as Western Europe, including the UK).

Examples

The following example shows altzone () function to use:

#!/usr/bin/python
import time

print "time.altzone %d " % time.altzone

The above example output is:

time.altzone() 25200