def jdToDate(jd):
    """def jdToDate(jd): Convert a Julian day number to day/month/year.
                       jd is an integer."""
    if jd > 2299160:
        a = jd + 32044
        b = int((4 * a + 3) / 146097.0)
        c = a - int(b * 146097 / 4.0)
    else:
        b = 0
        c = jd + 32082
    d = int((4 * c + 3) / 1461.0)
    e = c - int(1461 * d / 4.0)
    m = int((5 * e + 2) / 153.0)
    day = e - int((153 * m + 2) / 5.0) + 1
    month = m + 3 - 12 * int(m / 10.0)
    year = b * 100 + d - 4800 + int(m / 10.0)
    return [day, month, year]
