Reference
@ledable/sdk/astronomy
Sunrise, sunset and the moon.
On this page
Generated from the types of the SDK. Import from @ledable/sdk/astronomy; an editor shows the same declarations and comments as you type.
Functions
isDaytime
function isDaytime(lat: number, lng: number, local: Date, instant: Date): booleanmoonPhase
Astral 3.2 phase uses the UTC calendar date and returns a value normalized to one orbit.
function moonPhase(now: Date): numbersunTimes
function sunTimes(lat: number, lng: number, local: Date, instant: Date)