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=global_settings.applications_parent, name=global_settings.applications_parent)
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 = <web2py.gluon.custom_import._Web2pyImporter object at ...
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=global_settings.applications_parent, name=global_settings.applications_parent)
(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)

Class Variable Details [hide private]

_name

PyMySQL: A pure-Python drop-in replacement for MySQLdb.

Copyright (c) 2010 PyMySQL contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Value:
global_settings.applications_parent