mirror of
https://github.com/acamarata/pray-calc.git
synced 2026-07-01 03:14:28 +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.
81 lines
1.5 KiB
Markdown
81 lines
1.5 KiB
Markdown
[**pray-calc v2.1.1**](../README.md)
|
|
|
|
***
|
|
|
|
[pray-calc](../README.md) / calcTimesAll
|
|
|
|
# Function: calcTimesAll()
|
|
|
|
> **calcTimesAll**(`date`, `lat`, `lng`, `tz?`, `elevation?`, `temperature?`, `pressure?`, `hanafi?`): [`FormattedPrayerTimesAll`](../interfaces/FormattedPrayerTimesAll.md)
|
|
|
|
Defined in: [calcTimesAll.ts:30](https://github.com/acamarata/pray-calc/blob/af34aef986c37d8de9cf8db0744a41e3b0c99c40/src/calcTimesAll.ts#L30)
|
|
|
|
Compute prayer times formatted as HH:MM:SS strings, plus comparison times
|
|
for every supported traditional method.
|
|
|
|
Uses the dynamic twilight angle algorithm for the primary times. See
|
|
getTimesAll() for full parameter documentation.
|
|
|
|
## Parameters
|
|
|
|
### date
|
|
|
|
`Date`
|
|
|
|
Observer's local date
|
|
|
|
### lat
|
|
|
|
`number`
|
|
|
|
Latitude in decimal degrees (-90 to 90)
|
|
|
|
### lng
|
|
|
|
`number`
|
|
|
|
Longitude in decimal degrees (-180 to 180)
|
|
|
|
### tz?
|
|
|
|
`number` = `...`
|
|
|
|
UTC offset in hours (default: system timezone)
|
|
|
|
### elevation?
|
|
|
|
`number` = `0`
|
|
|
|
Elevation in meters (default: 0)
|
|
|
|
### temperature?
|
|
|
|
`number` = `15`
|
|
|
|
Temperature in Celsius (default: 15)
|
|
|
|
### pressure?
|
|
|
|
`number` = `1013.25`
|
|
|
|
Pressure in mbar/hPa (default: 1013.25)
|
|
|
|
### hanafi?
|
|
|
|
`boolean` = `false`
|
|
|
|
Hanafi Asr convention (default: false)
|
|
|
|
## Returns
|
|
|
|
[`FormattedPrayerTimesAll`](../interfaces/FormattedPrayerTimesAll.md)
|
|
|
|
All prayer times as HH:MM:SS strings. "N/A" for unreachable events.
|
|
|
|
## Example
|
|
|
|
```ts
|
|
const result = calcTimesAll(new Date('2024-06-21'), 40.7128, -74.006, -4);
|
|
console.log(result.dynamic.Fajr); // "03:51:24"
|
|
console.log(result.ISNA.Fajr); // "04:07:30"
|
|
```
|