UNPKG

solar-calculator

Version:

Equations for computing the position of the Sun.

6 lines (5 loc) 107 B
export default function(date) { date = new Date(+date); date.setUTCHours(0, 0, 0, 0); return date; }