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

Type LocalTimezone

object --+    
         |    
    tzinfo --+
             |
            LocalTimezone


Platform idea of local timezone.

This is the exact implementation from the Pyhton 2.3 documentation.


Method Summary
  dst(self, dt)
  tzname(self, dt)
  utcoffset(self, dt)
  _isdst(self, dt)
    Inherited from tzinfo
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
-> (cls, state)
  fromutc(...)
datetime in UTC -> datetime in local time.
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __hash__(x)
Return hash(x)...
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Method Details

dst(self, dt)

Overrides:
datetime.tzinfo.dst

tzname(self, dt)

Overrides:
datetime.tzinfo.tzname

utcoffset(self, dt)

Overrides:
datetime.tzinfo.utcoffset

_isdst(self, dt)