def hdate_to_jdn(date):
day = date.day<EOL>month = date.month<EOL>if date.month == <NUM_LIT>:<EOL><INDENT>month = <NUM_LIT:6><EOL><DEDENT>if date.month == <NUM_LIT>:<EOL><INDENT>month = <NUM_LIT:6><EOL>day += <NUM_LIT:30><EOL><DEDENT>day = _days_from_3744(date.year) + (<NUM_LIT> * (month - <NUM_LIT:1>) + <NUM_LIT:1>) // <NUM_LIT:2> + day<EOL>length_of_year = get_size_of_hebrew_year(date.year)<EOL>if length_of_year % <NUM_LIT:10> > <NUM_LIT:4> and month > <NUM_LIT:2>:  <EOL><INDENT>day += <NUM_LIT:1><EOL><DEDENT>if length_of_year % <NUM_LIT:10> < <NUM_LIT:4> and month > <NUM_LIT:3>:  <EOL><INDENT>day -= <NUM_LIT:1><EOL><DEDENT>if length_of_year > <NUM_LIT> and month > <NUM_LIT:6>:  <EOL><INDENT>day += <NUM_LIT:30><EOL><DEDENT>return day + <NUM_LIT><EOL>
Compute Julian day from Hebrew day, month and year.

Return: julian day number,
        1 of tishrey julians,
        1 of tishrey julians next year