MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/test/datetimetester.py:139–146  ·  view source on GitHub ↗
(self, offset, name, dstoffset=42)

Source from the content-addressed store, hash-verified

137class FixedOffset(tzinfo):
138
139 def __init__(self, offset, name, dstoffset=42):
140 if isinstance(offset, int):
141 offset = timedelta(minutes=offset)
142 if isinstance(dstoffset, int):
143 dstoffset = timedelta(minutes=dstoffset)
144 self.__offset = offset
145 self.__name = name
146 self.__dstoffset = dstoffset
147 def __repr__(self):
148 return self.__name.lower()
149 def utcoffset(self, dt):

Callers

nothing calls this directly

Calls 1

timedeltaClass · 0.90

Tested by

no test coverage detected