def to_jd(year, month, day, method=None):
method = method or '<STR_LIT>'<EOL>if day < <NUM_LIT:1> or day > <NUM_LIT:30>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if month > <NUM_LIT>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if month == <NUM_LIT> and day > <NUM_LIT:5> + leap(year, method=method):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if method == '<STR_LIT>':<EOL><INDENT>return _to_jd_equinox(year, month, day)<EOL><DEDENT>else:<EOL><INDENT>return _to_jd_schematic(year, month, day, method)<EOL><DEDENT>
Obtain Julian day from a given French Revolutionary calendar date.