I recently developed (or rather redeveloped) a widget for entering times. It's basically a remake of the one you use in KOrganizer's "new event" window if you choose the starting or the ending time of an event (with a combobox-style popup to choose predefined times with a 15 minute range).
While writing such a widget there's a lot of things to consider, eg. how to check the input, which input formats to allow and what type of input to refuse. Just like the old widget the new one shows times in the time format you configured in your systemsettings. Additionally I made it accept times in plain 24h format (eg. 16:45) and military format (eg. 1645) as that's basically what the old widget already did.
Now as I live in a country where 24h format is regular, I have trouble understanding how users with a 12h time format enter times or rather what they'd expect the widget to do if they enter times. Luckily David Jarvie, the KAlarm developer, brought up the issue of "ambiguous" times, ie. times the widget could interpret in different ways. Now as I'm still unsure about how such inputs should be handled I'd like to get some 12h format user opinions on it.
What would you expect the widget to do, if you...
- ... enter "12:25"
- Accept the input and resolve it to "12:25 am"
- Accept the input and resolve it to "12:25 pm"
- Reject the input unless "am" or "pm" is appended
- Something else (please describe)
- ... enter "08:37"
- Accept the input and resolve it to "08:37 am"
- Accept the input and resolve it to "08:37 pm"
- Reject the input unless "am" or "pm" is appended
- Something else (please describe)
- ... enter "1245"
- Accept the input and resolve it to "12:45 am"
- Accept the input and resolve it to "12:45 pm"
- Reject the input unless "am" or "pm" is appended
- Something else (please describe)
- ... enter "0913"
- Accept the input and resolve it to "09:13 am"
- Accept the input and resolve it to "09:13 pm"
- Reject the input unless "am" or "pm" is appended
- Something else (please describe)
Please keep in mind that while I will consider your input thoroughly this shouldn't be understood as a "poll as to how it will be done".
I'm looking forward to hearing from you!