Currently, only datetime.date objects are accepted to function that require an epoch. Extend code to accept decimal years