Contents:
Functions for handling dates.
These functions were taken from Enno Middleberg’s site of useful astronomical python references: http://www.astro.rub.de/middelberg/python/python.html
“Feel free to download, use, modify and pass on these scripts, but please do not remove my name from it.” –E. Middleberg
gd2jd.py converts a UT Gregorian date to Julian date.
Usage: gd2jd.py (2009, 02, 25, 01, 59, 59)
Hours, minutes and/or seconds can be omitted – if so, they are assumed to be zero.
Year and month are converted to type INT, but all others can be type FLOAT (standard practice would suggest only the final element of the date should be float)
Task to convert a list of julian dates to gregorian dates description at http://mathforum.org/library/drmath/view/51907.html Original algorithm in Jean Meeus, “Astronomical Formulae for Calculators”
2009-02-15 13:36 IJC: Converted to importable, callable function