janrg / MeeusSunMoon

JavaScript module to calculate times for sunrise, solar noon, and sunset, as well as moon phases based on "Astronomical Algorithms" by Jean Meeus
MIT License
31 stars 9 forks source link

Round to nearest minute #21

Closed brettz9 closed 4 years ago

brettz9 commented 4 years ago

While I didn't dig deeply to see whether this setting could make a difference (and a comment seemed to suggest at least in one case it wouldn't), to at least sanity check that the code blocks with the rounding weren't breaking anything, I've added coverage here. But the changes don't distinguish from non-rounding.

(I also didn't add this to repeat with all of the data, as I saw it more of sanity checking.)