yantra/patha/dasha.js
विंशोत्तरी दशा to five levels (mahā, antar, pratyantar, sūkṣma, prāṇa), exact, as Parāśara computes it.
146 lines · 0 exports
The header, as the file states it
What it loads
What it exports
SS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
19 top-level functions read from the source; the doc line is the comment above each; calls and callers are resolved across the registry’s modules by name. Line numbers are the file’s at engine 3f94072.
46.12-46.13: the lord (0…8) of a nakṣatra (1 = Aśvinī … 27 = Revatī).
Years (rational) → spandas of the turn (rational): years × civil days a year × N·R/S.
Mahādaśās from a birth instant (spandas of the turn, BigInt or {num, den}), the birth nakṣatra (1…27) and the elapsed fraction of it ({num, den}).
51.1-2, 61.1, 62.1, 63.1: the nine sub-periods of a period, the period's own lord first.
The chain of periods (down to `depth` levels, max 5) running at an instant (spandas, BigInt or {num, den}).
Birth state from a birth instant (days since the Kali epoch): the Moon's nakṣatra and the elapsed part of it, by time (bhayāta ÷ bhabhoga, 46.16 — the default) or by arc (the Moon's distance into the nakṣatra over 800′).
Vimśottarī from a birth instant (days since the Kali epoch).