Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python time altzone() method

Python time altzone() method


Description

The Python time altzone() function returns the offset in seconds of the daylight saving time zone west of Greenwich. It returns a negative value for zones east of Greenwich (such as Western Europe, including the UK). It can only be used in regions where daylight saving time is enabled.

Syntax

altzone() method syntax:



time.altzone

Parameters

Return Value

Returns the offset in seconds of the daylight saving time zone west of Greenwich. It returns a negative value for zones east of Greenwich (such as Western Europe, including the UK).

Example

The following example shows how to use the altzone() function:



#!/usr/bin/python

import time



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

The output of the above example is:



time.altzone() 25200