MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / utcoffset

Method utcoffset

suds/sax/date.py:326–334  ·  view source on GitHub ↗

http://docs.python.org/library/datetime.html#datetime.tzinfo.utcoffset

(self, dt)

Source from the content-addressed store, hash-verified

324 self.__dst_offset = None
325
326 def utcoffset(self, dt):
327 """
328 http://docs.python.org/library/datetime.html#datetime.tzinfo.utcoffset
329
330 """
331 if self.__is_daylight_time(dt):
332 return self.__dst_offset
333 else:
334 return self.__offset
335
336 def dst(self, dt):
337 """

Callers 2

__str__Method · 0.95
__unicode__Method · 0.95

Calls 1

__is_daylight_timeMethod · 0.95

Tested by

no test coverage detected