mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Added evaluable representation for the FixedOffsetTimezone object.
This commit is contained in:
parent
d30daac782
commit
60e7522e47
|
@ -49,6 +49,10 @@ class FixedOffsetTimezone(datetime.tzinfo):
|
||||||
if name is not None:
|
if name is not None:
|
||||||
self._name = name
|
self._name = name
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "psycopg2.tz.FixedOffsetTimezone(offset=%r, name=%r)" \
|
||||||
|
% (self._offset.seconds // 60, self._name)
|
||||||
|
|
||||||
def utcoffset(self, dt):
|
def utcoffset(self, dt):
|
||||||
return self._offset
|
return self._offset
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user