- #1
Tomfmal
- 3
- 2
- TL;DR Summary
- I am looking for a formula that will give an approximate sunrise and sunset but I only have 3 bits of information to work with: The current day of the year, longitude and latitude. I'm trying to incorporate rough SR and SS into a code for a watchface. The program does have a stock SR and SS but it is locked on one area (Los Angeles, USA). This is useless to people living in all other areas. I have seen some formulas but all have more info needed such as solar angle.
Help!
I am looking for a formula that will give an approximate sunrise and sunset but I only have 3 bits of information to work with: The current day of the year, longitude and latitude. I'm trying to incorporate rough SR and SS into a code for a watchface. The program does have a stock SR and SS but it is locked on one area (Los Angeles, USA). This is useless to people living in all other areas. I have seen some formulas but all have more info needed such as solar angle.
I do have UTC time available in the program if that helps. I don't see any way to tell whether or not your local time is positive or negative in relation to the UTC. My local time is 17:07 and the UTC comes up 21:07. I live in NY, USA.
Help!
I do have UTC time available in the program if that helps. I don't see any way to tell whether or not your local time is positive or negative in relation to the UTC. My local time is 17:07 and the UTC comes up 21:07. I live in NY, USA.
Help!