sleitnick @sleitnick.com · Nov 17

I ported a ton of NASA solar calculations into a Go library. I don't know what 90% of these are, but it lets me get the sunrise and sunset time without having to ping some random web API anymore! I just give it: Year, month, day, longitude, latitude, and tz offset. And it spits back this struct.

15 likes 2 replies

?

Replies

sleitnick · Nov 17

NOAA* not NASA

james onnen (quenty) · Nov 17

I ported these same ones into Lua for my day-night cycle lol