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

Method _Asia_Tokyo

Lib/test/test_zoneinfo/test_zoneinfo.py:2236–2247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2234 ]
2235
2236 def _Asia_Tokyo():
2237 JST = ZoneOffset("JST", timedelta(seconds=32400), ZERO)
2238 JDT = ZoneOffset("JDT", timedelta(seconds=36000), ONE_H)
2239
2240 # Japan had DST from 1948 to 1951, and it was unusual in that
2241 # the transition from DST to STD occurred at 25:00, and is
2242 # denominated as such in the time zone database
2243 return [
2244 ZoneTransition(datetime(1948, 5, 2), JST, JDT),
2245 ZoneTransition(datetime(1948, 9, 12, 1), JDT, JST),
2246 ZoneTransition(datetime(1951, 9, 9, 1), JDT, JST),
2247 ]
2248
2249 def _Australia_Sydney():
2250 LMT = ZoneOffset("LMT", timedelta(seconds=36292), ZERO)

Callers

nothing calls this directly

Calls 4

timedeltaClass · 0.90
datetimeClass · 0.90
ZoneOffsetClass · 0.85
ZoneTransitionClass · 0.85

Tested by

no test coverage detected