mirror of
https://github.com/acamarata/pray-calc.git
synced 2026-06-30 19:04:26 +00:00
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.
45 lines
759 B
Markdown
45 lines
759 B
Markdown
[**pray-calc v2.1.1**](../README.md)
|
|
|
|
***
|
|
|
|
[pray-calc](../README.md) / getAsr
|
|
|
|
# Function: getAsr()
|
|
|
|
> **getAsr**(`solarNoon`, `latitude`, `declination`, `hanafi?`): `number`
|
|
|
|
Defined in: [getAsr.ts:21](https://github.com/acamarata/pray-calc/blob/af34aef986c37d8de9cf8db0744a41e3b0c99c40/src/getAsr.ts#L21)
|
|
|
|
Compute Asr time as fractional hours.
|
|
|
|
## Parameters
|
|
|
|
### solarNoon
|
|
|
|
`number`
|
|
|
|
Solar noon in fractional hours (from getSpa)
|
|
|
|
### latitude
|
|
|
|
`number`
|
|
|
|
Observer latitude in degrees
|
|
|
|
### declination
|
|
|
|
`number`
|
|
|
|
Solar declination in degrees (from solarEphemeris)
|
|
|
|
### hanafi?
|
|
|
|
`boolean` = `false`
|
|
|
|
true for Hanafi (shadow factor 2), false for Shafi'i (factor 1)
|
|
|
|
## Returns
|
|
|
|
`number`
|
|
|
|
Fractional hours, or NaN if the sun never reaches the required altitude
|