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.
about 1 year ago