4 ms·
What's the unambiguous setting of 73:45 in hh:mm format?
by dogecoinbase 9y ago
What's the unambiguous setting of 73:45 in hh:mm format?
- oneeyedpigeon 9y agoInvalid input, just as the empty string or a single digit would be.
- KozmoNau7 9y ago3 days, 1 hour, 45 minutes. Simple. The Android clock app silently corrects 73 minutes to 1 hour 13 minutes. So for 1:13:45 (hh:mm:ss) you can input "7345" on the keypad and It. Just. Works.
- lobster_johnson 9y agoBut an alarm clock sets a relative point in time that happens every day. Putting "3 days" into a calendar is fine, but for an alarm clock it makes no sense.
- KozmoNau7 9y agoSo you add basic input validation.
- lobster_johnson 9y agoYes, but the person who originally proposed this argued that there was no ambiguity.