psycopg2.tz - tzinfo implementations for Psycopg 2 - Psycopg 2.9.5 documentation
Psycopg 2.9.5 documentation
implementations for Psycopg 2
Deprecated since version 2.9:
The module will be dropped in psycopg 2.10. Use
This module holds two different tzinfo implementations that can be used as the
constructors, directly passed to
Psycopg functions or used to set the
- class psycopg2.tz. FixedOffsetTimezone ( offset = None , name = None )
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
sis the sign.).
The implementation also caches instances. During creation, if a FixedOffsetTimezone instance has previously been created with the same offset and name that instance will be returned. This saves memory and improves comparability.
Changed in version 2.9: The constructor can take either a timedelta or a number of minutes of offset. Previously only minutes were supported.