moon-cycle/.github/wiki/api/variables/YEAR_ANCHOR.md
Aric Camarata 208f7ffba1 docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config
targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to
package.json. Generate initial API reference pages.

Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
2026-05-30 16:42:00 -04:00

23 lines
623 B
Markdown

[**moon-cycle v2.0.0**](../README.md)
***
[moon-cycle](../README.md) / YEAR\_ANCHOR
# Variable: YEAR\_ANCHOR
> `const` **YEAR\_ANCHOR**: `Date`
Defined in: [types.ts:101](https://github.com/acamarata/moon-cycle/blob/800a74670ed6ac7b6d239efd6ec627dbb009fcea/src/types.ts#L101)
Anchor date for the yearly cycle: start of the 2023 NASA image collection.
The 8,760 images correspond to one per hour for the full calendar year
2023. `cycleYear` measures elapsed time from this reference point.
## Example
```ts
import { YEAR_ANCHOR } from 'moon-cycle';
const hours = (Date.now() - YEAR_ANCHOR.getTime()) / 3600000;
```