psycopg2.tz – tzinfo implementations for Psycopg 2 — Psycopg v2.0.14 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Psycopg v2.0.14 documentation »

# `psycopg2.tz` – `tzinfo` implementations for Psycopg 2

This module holds two different tzinfo implementations that can be used as the `tzinfo` argument to datetime constructors, directly passed to Psycopg functions or used to set the `cursor.tzinfo_factory` attribute in cursors.

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 `sHH:MM` (`s` is the sign.).

class `psycopg2.tz.` `LocalTimezone`

  Platform idea of local timezone.

  This is the exact implementation from the Pyhton 2.3 documentation.

### Navigation

- index
- modules |
- next |
- previous |
- Psycopg v2.0.14 documentation »