The main program first processes its command line
arguments. Then, if all is well, it converts them to a
JulianDate and displays that as a float.
# - - - m a i n
def main():
"""jd main program.
"""
#-- 1 --
# [ if the arguments in sys.argv are valid ->
# dt := a datetime.datetime instance representing the
# date and time expressed in those arguments ]
dt = argCheck()
#-- 2 --
# [ jd := a JulianDate instance representing dt ]
jd = sidereal.JulianDate.fromDatetime ( dt )
#-- 3 --
print float(jd)