Formula applied
The exact method behind this answer
CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.
observer = Astronomy.Observer(latitude, longitude, elevationMetres). t0 = local civil midnight converted to UTC. Sunrise = SearchRiseSet(Sun, observer, +1, t0, 1.05). Sunset = SearchRiseSet(Sun, observer, -1, t0, 1.05). Daylight length = sunset - sunrise.- Apply the formulaobserver = Astronomy.Observer(latitude, longitude, elevationMetres). t0 = local civil midnight converted to UTC. Sunrise = SearchRiseSet(Sun, observer, +1, t0, 1.05). Sunset = SearchRiseSet(Sun, observer, -1, t0, 1.05). Daylight length = sunset - sunrise.9h 54m daylightAstronomy Engine SearchRiseSet(Sun) found sunrise 2026-06-20 21:00 UTC / 2026-06-21 07:00 (UTC+10) and sunset 2026-06-21 06:53 UTC / 2026-06-21 16:53 (UTC+10) for -33.9°, 151.2°.