Package psycopg2 :: Module tz
[show private | hide private]
[frames | no frames]

Module psycopg2.tz

tzinfo implementations for psycopg2

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 .tzinfo_factory attribute in cursors.


Classes
FixedOffsetTimezone Fixed offset in minutes east from UTC.
LocalTimezone Platform idea of local timezone.

Variable Summary
timedelta DSTDIFF = datetime.timedelta(0, 3600)
LocalTimezone LOCAL = <psycopg2.tz.LocalTimezone object at 0x00847090>
timedelta STDOFFSET = datetime.timedelta(0, 3600)
timedelta ZERO = datetime.timedelta(0)

Variable Details

DSTDIFF

Type:
timedelta
Value:
datetime.timedelta(0, 3600)                                            

LOCAL

Type:
LocalTimezone
Value:
<psycopg2.tz.LocalTimezone object at 0x00847090>                       

STDOFFSET

Type:
timedelta
Value:
datetime.timedelta(0, 3600)                                            

ZERO

Type:
timedelta
Value:
datetime.timedelta(0)