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

Class UTC

Lib/test/test_logging.py:4558–4565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4556ZERO = datetime.timedelta(0)
4557
4558class UTC(datetime.tzinfo):
4559 def utcoffset(self, dt):
4560 return ZERO
4561
4562 dst = utcoffset
4563
4564 def tzname(self, dt):
4565 return 'UTC'
4566
4567utc = UTC()
4568

Callers 1

test_logging.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected