def legal_date(year, month, day):
daysinmonth = month_length(year, month)<EOL>if not (<NUM_LIT:0> < day <= daysinmonth):<EOL><INDENT>raise ValueError("<STR_LIT>".format(month, day))<EOL><DEDENT>return True<EOL>
Check if this is a legal date in the Julian calendar