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

Class UOFS

Lib/test/datetimetester.py:5465–5470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5463 cls(1, 1, 1, tzinfo=DST(0)).utcoffset)
5464
5465 class UOFS(DST):
5466 def __init__(self, uofs, dofs=None):
5467 DST.__init__(self, dofs)
5468 self.uofs = timedelta(minutes=uofs)
5469 def utcoffset(self, dt):
5470 return self.uofs
5471
5472 for dstvalue in -33, 33, 0, None:
5473 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…