Comment by perilunar
8 hours ago
> how to handle the corner cases where the sun rises but does not set (and vice versa)
In practice it doesn't matter: you get a thin sliver of twilight between solar midnight and sunrise or sunset, and a 'Sunset: Does not occur' message in the text info. In such cases the sunrise/sunset arc (sector?) is pretty broad anyway.
> or if it should be tomorrow once you’ve already passed that time
Yes. I chose to recalculate the times midnight.
> Either way, at a certain point you’ll see the UI shift
Yes, but it's usually not dramatic. A few minutes time and fractions of a degree each day. The biggest shift occurs when Daylight Saving time changes — you get a big 15° rotation in the display. Most people are asleep when that happens, but it's cool to watch it jump.
No comments yet
Contribute on Hacker News ↗