in reply to Converting 24 hour time back into 12 hour
($hour %= 12) ||= 12;
The problem with your solution is that, now 12:00 (lunch time) becomes 0:00 ;-) If you read other answers carefully, you will fnd that they made effort to avoid this.
An organised event
A traditional gathering
With family and friends
I don't celebrate the New Year
Adjusting my clocks for the Leap Second
I can't remember
Results (254 votes). Check out past polls.