MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / __init__

Method __init__

tests/test_code/py/pytz/__init__.py:402–406  ·  view source on GitHub ↗
(self, minutes)

Source from the content-addressed store, hash-verified

400 zone = None # to match the standard pytz API
401
402 def __init__(self, minutes):
403 if abs(minutes) >= 1440:
404 raise ValueError("absolute offset is too large", minutes)
405 self._minutes = minutes
406 self._offset = datetime.timedelta(minutes=minutes)
407
408 def utcoffset(self, dt):
409 return self._offset

Callers

nothing calls this directly

Calls 1

absFunction · 0.85

Tested by

no test coverage detected