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

Method utcoffset

Lib/test/datetimetester.py:165–166  ·  view source on GitHub ↗
(self, datetime_module)

Source from the content-addressed store, hash-verified

163
164class _TZInfo(tzinfo):
165 def utcoffset(self, datetime_module):
166 return random.random()
167
168class TestTZInfo(unittest.TestCase):
169

Callers 15

test_issue23600Method · 0.45
test_class_membersMethod · 0.45
test_constructorMethod · 0.45
test_utcoffsetMethod · 0.45
test_fromutcMethod · 0.45
test_aware_datetimeMethod · 0.45
test_strptimeMethod · 0.45
test_strptime_tzMethod · 0.45
test_argument_passingMethod · 0.45
test_tzinfo_classesMethod · 0.45

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected