MCPcopy Index your code
hub / github.com/RustPython/RustPython / UOFS

Class UOFS

Lib/test/datetimetester.py:5278–5283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5276 cls(1, 1, 1, tzinfo=DST(0)).utcoffset)
5277
5278 class UOFS(DST):
5279 def __init__(self, uofs, dofs=None):
5280 DST.__init__(self, dofs)
5281 self.uofs = timedelta(minutes=uofs)
5282 def utcoffset(self, dt):
5283 return self.uofs
5284
5285 for dstvalue in -33, 33, 0, None:
5286 d = cls(1, 2, 3, 10, 20, 30, 40, tzinfo=UOFS(-53, dstvalue))

Callers 1

test_utctimetupleMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_utctimetupleMethod · 0.68