Python time altzone() Method


Contents

Description

Python time method altzone() is the quality of the occasion unit. These revisits equalize of the local DST time zone, in seconds west of UTC, if one is described. This is unenthusiastic if the restricted DST time zone is east of UTC (as in Western Europe, incorporating the UK). Only utilize this if daytime is nonzero.

Syntax

Following is the syntax for altzone() method:

time.altzone

Parameters

  • NA

Return Value

This method returns the offset of the local DST timezone, in seconds west of UTC, if one is defined.

Example

The following example shows the usage of altzone() method.

#!/usr/bin/python
import time

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

When we run above program, it produces following result:

time.altzone() 25200

Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.



Navigation
Tutorial
Tutorial
Tutorial