if ( $ampm = "pm" ) { $hour += 12; }

/*

I wrote this to convert 12 hour format to military time.

This code was in production for two weeks before we discovered

that the logic wasn't quite right.