moon-cycle/.github/wiki/api/variables/MONTH_ANCHOR.md

593 B

moon-cycle v2.0.0


moon-cycle / MONTH_ANCHOR

Variable: MONTH_ANCHOR

const MONTH_ANCHOR: Date

Defined in: types.ts:89

Anchor date for the monthly cycle: the 2023-11-13 new moon (UTC).

All synodic phase calculations measure elapsed time from this reference point. Confirmed against JPL Horizons ephemeris data.

Example

import { MONTH_ANCHOR } from 'moon-cycle';
const ageMs = Date.now() - MONTH_ANCHOR.getTime();