psycopg2 :: tz :: FixedOffsetTimezone :: Class FixedOffsetTimezone
[hide private]
[frames] | no frames]

Class FixedOffsetTimezone

source code

     object --+    
              |    
datetime.tzinfo --+
                  |
                 FixedOffsetTimezone

Fixed offset in minutes east from UTC.

This is exactly the implementation found in Python 2.3.x documentation, with a small change to the __init__ method to allow for pickling and a default name in the form 'sHH:MM' ('s' is the sign.)

Instance Methods [hide private]
 
__init__(self, offset=1, name=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
dst(self, dt)
datetime -> DST offset in minutes east of UTC.
source code
 
tzname(self, dt)
datetime -> string name of time zone.
source code
 
utcoffset(self, dt)
datetime -> minutes east of UTC (negative for west of UTC).
source code

Inherited from datetime.tzinfo: __getattribute__, __new__, __reduce__, fromutc

Inherited from object: __delattr__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  _name = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  _offset = datetime.timedelta(0)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, offset=1, name=1)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

dst(self, dt)

source code 
datetime -> DST offset in minutes east of UTC.
Overrides: datetime.tzinfo.dst
(inherited documentation)

tzname(self, dt)

source code 
datetime -> string name of time zone.
Overrides: datetime.tzinfo.tzname
(inherited documentation)

utcoffset(self, dt)

source code 
datetime -> minutes east of UTC (negative for west of UTC).
Overrides: datetime.tzinfo.utcoffset
(inherited documentation)