X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=psycopg2%2Fdoc%2Fapi%2Fpublic%2Fpsycopg2.tz.FixedOffsetTimezone-class.html;fp=psycopg2%2Fdoc%2Fapi%2Fpublic%2Fpsycopg2.tz.FixedOffsetTimezone-class.html;h=71145dddf9c0bcf7e431cd1aca1a31d7a6806c5b;hb=e5bdc26e1423689c0ab3204931335787737946ea;hp=0000000000000000000000000000000000000000;hpb=f8dd312990da7cc744e1c148bfd395c18492f3f1;p=plcapi.git diff --git a/psycopg2/doc/api/public/psycopg2.tz.FixedOffsetTimezone-class.html b/psycopg2/doc/api/public/psycopg2.tz.FixedOffsetTimezone-class.html new file mode 100644 index 0000000..71145dd --- /dev/null +++ b/psycopg2/doc/api/public/psycopg2.tz.FixedOffsetTimezone-class.html @@ -0,0 +1,213 @@ + + + + + psycopg2.tz.FixedOffsetTimezone + + + + + + + + + + + + + + + + + + + +
+ + Package psycopg2 :: + Module tz :: + Class FixedOffsetTimezone +
+
+ + +
[show private | hide private]
[frames | no frames]
+ + +

Type FixedOffsetTimezone

+ +
+object --+    
+         |    
+    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.)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Method Summary
 __init__(self, + offset, + name) +
 dst(self, + dt) +
 tzname(self, + dt) +
 utcoffset(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
 __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
+ + +
+

__init__(self, + offset=None, + name=None) +
(Constructor) +

+
+
Overrides:
+
__builtin__.object.__init__
+
+
+
+ + +
+

dst(self, + dt) +

+
+
Overrides:
+
datetime.tzinfo.dst
+
+
+
+ + +
+

tzname(self, + dt) +

+
+
Overrides:
+
datetime.tzinfo.tzname
+
+
+
+ + +
+

utcoffset(self, + dt) +

+
+
Overrides:
+
datetime.tzinfo.utcoffset
+
+
+
+
+ + + + + + + + + + + + + + + + + + +
+ +