def check_time(value):
try:<EOL><INDENT>h, m = value.split('<STR_LIT::>')<EOL>h = int(h)<EOL>m = int(m)<EOL>if h >= <NUM_LIT> or h < <NUM_LIT:0>:<EOL><INDENT>raise ValueError<EOL><DEDENT>if m >= <NUM_LIT> or m < <NUM_LIT:0>:<EOL><INDENT>raise ValueError<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>raise TimeDefinitionError("<STR_LIT>" % value)<EOL><DEDENT>
check that it's a value like 03:45 or 1:1