def to_jd(year, month, day):
gyear = year + <NUM_LIT><EOL>leap = isleap(gyear)<EOL>start = gregorian.to_jd(gyear, <NUM_LIT:3>, <NUM_LIT> - leap)<EOL>if leap:<EOL><INDENT>Caitra = <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>Caitra = <NUM_LIT:30><EOL><DEDENT>if month == <NUM_LIT:1>:<EOL><INDENT>jd = start + (day - <NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>jd = start + Caitra<EOL>m = month - <NUM_LIT:2><EOL>m = min(m, <NUM_LIT:5>)<EOL>jd += m * <NUM_LIT><EOL>if month >= <NUM_LIT:8>:<EOL><INDENT>m = month - <NUM_LIT:7><EOL>jd += m * <NUM_LIT:30><EOL><DEDENT>jd += day - <NUM_LIT:1><EOL><DEDENT>return jd<EOL>
Obtain Julian day for Indian Civil date