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

Class Varies

Lib/test/datetimetester.py:4775–4780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4773
4774 # In time w/ identical tzinfo objects, utcoffset is ignored.
4775 class Varies(tzinfo):
4776 def __init__(self):
4777 self.offset = timedelta(minutes=22)
4778 def utcoffset(self, t):
4779 self.offset += timedelta(minutes=1)
4780 return self.offset
4781
4782 v = Varies()
4783 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…