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

Class UKSummerTime

Lib/test/datetimetester.py:245–257  ·  view source on GitHub ↗

Simple time zone which pretends to always be in summer time, since that's what shows the failure.

Source from the content-addressed store, hash-verified

243 DSTDIFF = DSTOFFSET = timedelta(hours=1)
244
245 class UKSummerTime(tzinfo):
246 """Simple time zone which pretends to always be in summer time, since
247 that's what shows the failure.
248 """
249
250 def utcoffset(self, dt):
251 return DSTOFFSET
252
253 def dst(self, dt):
254 return DSTDIFF
255
256 def tzname(self, dt):
257 return 'UKSummerTime'
258
259 tz = UKSummerTime()
260 u = datetime(2014, 4, 26, 12, 1, tzinfo=tz)

Callers 1

test_issue23600Method · 0.85

Calls

no outgoing calls

Tested by 1

test_issue23600Method · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…