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.
33 lines
556 B
Markdown
33 lines
556 B
Markdown
[**pray-calc v2.1.1**](../README.md)
|
|
|
|
***
|
|
|
|
[pray-calc](../README.md) / getMidnight
|
|
|
|
# Function: getMidnight()
|
|
|
|
> **getMidnight**(`maghribTime`, `endTime`): `number`
|
|
|
|
Defined in: [getMidnight.ts:16](https://github.com/acamarata/pray-calc/blob/af34aef986c37d8de9cf8db0744a41e3b0c99c40/src/getMidnight.ts#L16)
|
|
|
|
Compute the midpoint of the night.
|
|
|
|
## Parameters
|
|
|
|
### maghribTime
|
|
|
|
`number`
|
|
|
|
Maghrib (sunset) time in fractional hours
|
|
|
|
### endTime
|
|
|
|
`number`
|
|
|
|
Fajr or Sunrise time in fractional hours (next day)
|
|
|
|
## Returns
|
|
|
|
`number`
|
|
|
|
Midnight as fractional hours
|