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

Class Varies

Lib/test/datetimetester.py:4593–4598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4591
4592 # In time w/ identical tzinfo objects, utcoffset is ignored.
4593 class Varies(tzinfo):
4594 def __init__(self):
4595 self.offset = timedelta(minutes=22)
4596 def utcoffset(self, t):
4597 self.offset += timedelta(minutes=1)
4598 return self.offset
4599
4600 v = Varies()
4601 t1 = t2.replace(tzinfo=v)

Callers 2

test_mixed_compareMethod · 0.70
test_mixed_compareMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_mixed_compareMethod · 0.56
test_mixed_compareMethod · 0.56