mirror of
https://github.com/acamarata/hijri-core.git
synced 2026-07-01 11:14:28 +00:00
docs: add Architecture section to README
This commit is contained in:
parent
8ed4472701
commit
72fb536fcd
1 changed files with 6 additions and 0 deletions
|
|
@ -107,6 +107,12 @@ interface CalendarEngine {
|
||||||
|
|
||||||
Register with `registerCalendar('my-id', myEngine)`. Then pass `{ calendar: 'my-id' }` to any conversion function.
|
Register with `registerCalendar('my-id', myEngine)`. Then pass `{ calendar: 'my-id' }` to any conversion function.
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
The UAQ engine performs a binary search over the 184-entry table — O(log 183) per conversion. The FCNA engine computes new moon times using the Meeus Ch. 49 algorithm (3 to 5 trigonometric evaluations per call). The registry pattern lets any consumer add custom calendar systems at runtime without modifying the core.
|
||||||
|
|
||||||
|
For more detail see the [Architecture wiki page](https://github.com/acamarata/hijri-core/wiki/Architecture).
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
- Node.js 20, 22, 24
|
- Node.js 20, 22, 24
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue