Package suds :: Package sax :: Module date :: Class Timezone
[hide private]
[frames] | no frames]

Class Timezone

source code

Timezone object used to do TZ conversions

Instance Methods [hide private]
 
__init__(self, offset=None) source code
datetime.timedelta
adjustment(self, offset)
Get the adjustment to the local TZ.
source code
Class Methods [hide private]
tuple
split(cls, s)
Split the TZ from string.
source code
Class Variables [hide private]
  pattern = re.compile(r'([zZ])|([-\+][0-9]{2}:[0-9]{2})')
  LOCAL = -5
int local
The (A) local TZ offset.
re.Pattern patten
The regex patten to match TZ.
Method Details [hide private]

split(cls, s)
Class Method

source code 

Split the TZ from string.

Parameters:
  • s (basestring) - A string containing a timezone
Returns: tuple
The split parts.

adjustment(self, offset)

source code 

Get the adjustment to the local TZ.

Returns: datetime.timedelta
The delta between offset and local TZ.