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

Function _mkoffset

tests/test_isoparser.py:16–21  ·  view source on GitHub ↗
(hmtuple, fmt)

Source from the content-addressed store, hash-verified

14
15def _generate_tzoffsets(limited):
16 def _mkoffset(hmtuple, fmt):
17 h, m = hmtuple
18 m_td = (-1 if h < 0 else 1) * m
19
20 tzo = tz.tzoffset(None, timedelta(hours=h, minutes=m_td))
21 return tzo, fmt.format(h, m)
22
23 out = []
24 if not limited:

Callers 1

_generate_tzoffsetsFunction · 0.85

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected