@staticmethod<EOL><INDENT>def _calculate_hour_and_minute(float_hour):<DEDENT>
hour = int(float_hour)<EOL>minute = int(round((float_hour - int(float_hour)) * <NUM_LIT>))<EOL>if minute == <NUM_LIT>:<EOL><INDENT>return hour + <NUM_LIT:1>, <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>return hour, minute<EOL><DEDENT>
Calculate hour and minutes as integers from a float hour.