suncalc icon indicating copy to clipboard operation
suncalc copied to clipboard

Added solar time.

Open camiteca opened this issue 3 years ago • 2 comments

What does this PR do?

Adds the solar time function to the library.

What issues does it solve?

#136

camiteca avatar Feb 04 '22 14:02 camiteca

Thanks for the PR! Is there a reason to separately introduce this method if you can already get solarNoon from getTimes which is essentially the same thing?

mourner avatar Jul 31 '22 19:07 mourner

Hi @mourner, thank you for your time. The main reason behind the PR is that solarNoon is always the same for a given latitude and longitude (as stated, the sun's highest position). The solar time is a calculation of the passage of time based on the position of the Sun in the sky, which varies with the given date.

If there's already a way to achieve this with the library, please let me know. I struggle a bit with the terms :)

camiteca avatar Aug 11 '22 09:08 camiteca