Commands, settings, SDK functions, anything in the docs.

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): boolean

moonPhase

Astral 3.2 phase uses the UTC calendar date and returns a value normalized to one orbit.

function moonPhase(now: Date): number

sunTimes

function sunTimes(lat: number, lng: number, local: Date, instant: Date)