mourner / suncalc

A tiny JavaScript library for calculating sun/moon positions and phases.
BSD 2-Clause "Simplified" License
3.06k stars 410 forks source link

alwaysUp and alwaysDown in SunCalc.getTimes #69

Open filchos opened 8 years ago

filchos commented 8 years ago

For working with regions that have midnight sun and polar night, it would be nice to have two properties alwaysUp and alwaysDown in the result object of SunCalc.getTimes(). (The property names are the same as in the result of SunCalc.getMoonTimes().)

JasperG commented 8 years ago

Related to #45.

See "Computing rise/set times" by Paul Schlyter , chapter 2.

Currently unmerged patch to #45 may be used to provide requested functionality.

Krillko commented 5 years ago

This issue seems to be forgotten, but it would be a really useful feature.