Skip to content

getSunMoonEvents

github-actions[bot] edited this page May 30, 2026 · 1 revision

moon-sighting v1.1.1


moon-sighting / getSunMoonEvents

Function: getSunMoonEvents()

getSunMoonEvents(date, observer, options?): Promise<SunMoonEvents>

Defined in: api/index.ts:833

Get rise, set, and twilight times for the Sun and Moon on a given date.

Requires initKernels() for accurate results.

Parameters

date

Date

Date to compute events for

observer

Observer

Observer location

options?

Pick<SightingOptions, "kernels">

Optional kernel configuration

Returns

Promise<SunMoonEvents>

SunMoonEvents with all times in UTC

Clone this wiki locally