(baseTime string)
| 153 | } |
| 154 | |
| 155 | func 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 |
no test coverage detected