seaLevelSunrise

val seaLevelSunrise: <Error class: unknown class>?

A method that returns the sunrise without elevation. Non-sunrise and sunset calculations such as dawn and dusk, depend on the amount of visible light, something that is not affected by elevation. This method returns sunrise calculated at sea level. This forms the base for dawn calculations that are calculated as a dip below the horizon before sunrise.

Return

null if geoLocation is null or sunrise can't be computer (see getUTCSunrise). (TODO null check: is this a good contract?) Otherwise, the Date representing the exact sea-level sunrise time. If the calculation can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it does not set, a null will be returned. See detailed explanation on top of the page.

See also