R package for calculating sun/moon positions and phases, linked to suncalc.js
Dates with times before a certain time return times for previous day