Modulus division. You divide by 12 and keep the as a result the integer remainder of the division.

So 23.00 h mod 12 gives remaider 11, exactly what 23 at 12h basis is.

Ioannis