We noticed, thanks to my colleague @javiergm1983, that the constant value SECONDS_IN_YEAR is not correct. I do not know if you did it on purpose but following the standard convention, if it is considered a Gregorian year (365.2425 days), and a day are 86400 seconds, its value should be 52 seconds more.
Hello there,
We noticed, thanks to my colleague @javiergm1983, that the constant value
SECONDS_IN_YEAR
is not correct. I do not know if you did it on purpose but following the standard convention, if it is considered a Gregorian year (365.2425 days), and a day are 86400 seconds, its value should be 52 seconds more.SECONDS_IN_YEAR = (365.2425 days) * (86400 seconds/day) = 31556952 seconds
I took the liberty to add a few new constants that somebody might find useful:
Please let me know if you like and found this code useful.
Thank you.
Cheers!