pray-calc/.github/wiki/api/functions/getMscFajr.md
Aric Camarata 4227afc2c3 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:41:58 -04:00

43 lines
828 B
Markdown

[**pray-calc v2.1.1**](../README.md)
***
[pray-calc](../README.md) / getMscFajr
# Function: getMscFajr()
> **getMscFajr**(`date`, `latitude`): `number`
Defined in: [getMSC.ts:103](https://github.com/acamarata/pray-calc/blob/af34aef986c37d8de9cf8db0744a41e3b0c99c40/src/getMSC.ts#L103)
Compute Fajr offset in minutes before sunrise using the MCW algorithm.
Returns minutes before sunrise. At latitudes above 55°, the 1/7-night
approximation is recommended (handled at the calling site).
## Parameters
### date
`Date`
Observer's local date
### latitude
`number`
Observer latitude in decimal degrees
## Returns
`number`
Minutes before sunrise for Fajr (Subh Sadiq)
## Example
```ts
const offset = getMscFajr(new Date('2024-06-21'), 40.7128);
// offset ≈ 93 (minutes before sunrise for New York in summer)
```