MCPcopy Create free account
hub / github.com/github/gh-aw / parse24HourTime

Function parse24HourTime

pkg/parser/schedule_time_utils.go:155–164  ·  view source on GitHub ↗
(baseTime string)

Source from the content-addressed store, hash-verified

153}
154
155func parse24HourTime(baseTime string) (int, int, bool) {
156 if !strings.Contains(baseTime, ":") {
157 return 0, 0, false
158 }
159 hourNum, minNum, ok := parseHourMinute(baseTime)
160 if !ok || hourNum < 0 || hourNum > 23 || minNum < 0 || minNum > 59 {
161 return 0, 0, false
162 }
163 return minNum, hourNum, true
164}
165
166// parseUTCOffset parses UTC offset strings (e.g., utc+9, utc-5, utc+09:00, utc-05:30)
167// Returns the offset in minutes

Callers 1

parseBaseTimeFunction · 0.85

Calls 1

parseHourMinuteFunction · 0.85

Tested by

no test coverage detected