You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_times no longer raises Math::DomainError for polar latitudes.
Previously, calling get_times for any location and date where the sun
did not cross a given altitude (polar day, polar night, or any partial
case) would crash the entire call with an unhandled Math::DomainError
from Math.acos. This bug has been present since the original 2015
port. Events that don't occur are now reported as nil in the result
hash, mirroring the sparse-result pattern already used by get_moon_times.
Added
:always_up and :always_down flag keys on the get_times result.
When neither sunrise nor sunset occurs, the result hash includes either :always_up => true (midnight sun — sun above horizon all day) or :always_down => true (polar night — sun below horizon all day). The
flag is determined from the sun's altitude at solar noon. Other events
in the same call (:solar_noon, :nadir, and twilight boundaries that
do still occur) are returned normally alongside the flag.