MCPcopy Create free account
hub / github.com/dateutil/dateutil / hm

Function hm

tests/test_tzfile.py:2650–2654  ·  view source on GitHub ↗
(hours, minutes=0, seconds=0)

Source from the content-addressed store, hash-verified

2648@as_list
2649def _dst_inference_cases():
2650 def hm(hours, minutes=0, seconds=0):
2651 sign = -1 if hours < 0 else 1
2652 return sign * timedelta(
2653 hours=abs(hours), minutes=minutes, seconds=seconds
2654 )
2655
2656 # The same local time type used for double summer time in one era and
2657 # for summer time in another, as with UTC+0 DST in Atlantic/Azores.

Callers 1

_dst_inference_casesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected