got a good gregorian date -> julian day number function, now to make use of it...