Hanno Reinhannorein@mastodon.social
Sep 29, 2026, 12:10 AM@iju it’s literally five lines of code.
@iju it’s literally five lines of code.
@hannorein @iju the problem is probably the map to determine which time zone entry to use based on gps location. It should offer to give you local solar time, that’s just a calculation.
I believe solar time would tell you when it's midday, but not when sun rises (or if it rises at all).
@iju @hannorein If you know where you are on a sphere, you can use solid geometry to compute the visibility of another sphere in the sky.
Ok, yeah. I suppose. I never was good with that stuff.
If you say so. Seems like a lot of data to me to put on few lines, but you're the one of us with experience.