0
Answered

Sunset & nightfall (3 stars) as a function of location

Evgeny Zhenya 7 years ago updated by Michael J. Radwin 7 years ago 1

Shalom

How do I write the function that shows sunset & nightfall (3 stars) PER DAY depending on location?


Thank you

Answered

If you're looking for general-purpose functions, there are a variety in each programming language. For example in JavaScript you might use this https://github.com/mourner/suncalc


And in PHP you might use this http://php.net/manual/en/function.date-sun-info.php