|
|
|
|
|
by curun1r
3517 days ago
|
|
> eschewing AM/PM in favor of a 24-hour clock Even if we keep AM/PM, we should make it make sense. It should switch when the numbers roll over. Having 11am be followed by 12pm is nonsensical. The fix for this, as any programmer will tell you, is to recognize that 12 is really 0...we've got an off-by-one bug. Midnight should be 0am and noon should be 0pm. |
|
twelveHour = twentyFourHour mod 12
But instead with the status quo, we need to add this extra line of logic:
if twelveHour == 0 then twelveHour = 12