isAMPMToken checks if a token is an AM/PM indicator
(token string)
| 31 | |
| 32 | // isAMPMToken checks if a token is an AM/PM indicator |
| 33 | func isAMPMToken(token string) bool { |
| 34 | switch strings.ToLower(token) { |
| 35 | case "am", "pm": |
| 36 | return true |
| 37 | default: |
| 38 | return false |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // normalizeTimeTokens combines time tokens into a normalized string |
| 43 | // Handles time, AM/PM, and timezone tokens |