code: def jdFromDate(dd, mm, yy):
      '''def jdFromDate(dd, mm, yy): Compute the (integral) Julian day number of
      day dd/mm/yyyy, i.e., the number of days between 1/1/4713 BC
      (Julian calendar) and dd/mm/yyyy.'''
      a = int((14 - mm) / 12.)
      y = yy + 4800 - a
      m = mm + 12 * a - 3
      jd = dd + int((153 * m + 2) / 5.) \
          + 365 * y + int(y / 4.) - int(y / 100.) \
          + int(y / 400.) - 32045
      if (jd < 2299161):
          jd = dd + int((153 * m + 2) / 5.) \
              + 365 * y + int(y / 4.) - 32083
      return jf jdFromDate(dd, mm, yy):
      '''def jdFromDate(dd, mm, yy): Compute the (integral) Julian day number of
      day dd/mm/yyyy, i.e., the number of days between 1/1/4713 BC
      (Julian calendar) and dd/mm/yyyy.'''
      a = int((14 - mm) / 12.)
      y = yy + 4800 - a
      m = mm + 12 * a - 3
      jd = dd + int((153 * m + 2) / 5.) \
          + 365 * y + int(y / 4.) - int(y / 100.) \
          + int(y / 400.) - 32045
      if (jd < 2299161):
          jd = dd + int((153 * m + 2) / 5.) \
              + 365 * y + int(y / 4.) - 32083
      return jd
docs: def jdFromDate(dd, mm, yy): Compute the (integral) Julian day number of
      day dd/mm/yyyy, i.e., the number of days between 1/1/4713 BC
      (Julian calendar) and dd/mm/yyyy.