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

Function _mkoffset

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

Source from the content-addressed store, hash-verified

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

Callers 1

_generate_tzoffsetsFunction · 0.85

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected