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

Method _adjust_ampm

src/dateutil/parser/_parser.py:1092–1097  ·  view source on GitHub ↗
(self, hour, ampm)

Source from the content-addressed store, hash-verified

1090 return val_is_ampm
1091
1092 def _adjust_ampm(self, hour, ampm):
1093 if hour < 12 and ampm == 1:
1094 hour += 12
1095 elif hour == 12 and ampm == 0:
1096 hour = 0
1097 return hour
1098
1099 def _parse_min_sec(self, value):
1100 # TODO: Every usage of this function sets res.second to the return

Callers 2

_parseMethod · 0.95
_parse_numeric_tokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected