भारत · ग्रहगणित
स्थान उज्जयिनी Ujjayinī · change it on a tool⌕ search the कोश ⌘Kप्रहर — · —:—:—ours, from sunriseउज्जयिनी —:—:—UTC + λ/15 h, λ = 75.7682° E (D13)IST Error −26.9 minlocal mean time − IST = 4λ − 330 min (K12)engine 3f94072the site ↗

yantra/patha/kala-mana.js

काल-मान: the Sūrya-Siddhānta's time-measures as exact rationals, set beside the owner's own derived

221 lines · 0 exports

प्रमाण: पाठ SS 14 (the nine measures of time) · गणित (exact rationals)
लेख · the header

The header, as the file states it

kala-mana.js — काल-मान: the Sūrya-Siddhānta's time-measures as exact rationals, set beside the owner's own derived प्रमाण: पाठ SS 14 (the nine measures of time) · गणित (exact rationals) series, plus the calendar pieces the panchang was missing (2026-10-14): 1. pūrṇimānta month naming beside the amānta month (pure rule, no extra tier call); 2. the adhika month's traditional names (पुरुषोत्तम / मल मास) and the kṣaya month label; 3. adhika/kṣaya months across the own series' span (a table the build script computes from that series), and the text's MEAN adhimāsa (madhyama adhimāsa) as exact lattice instants — one every D/A civil days; 4. the year comparison: the text's sidereal year, the own series' sidereal and tropical years, the Gregorian and Julian civil years (definitions), and the lunar year. Sources: Sūrya-Siddhānta 1.29-1.37 bhagaṇas and civil days (the text's integers); the own series' bhagaṇas and its ayanāṃśa rate through SiddhantaTier (siddhanta-tier.js). No foreign ephemeris enters: the comparison column is the owner's own derived series. Works in the browser (window.KalaMana) and in node (module.exports).
आवश्यक · requires

What it loads

required by
nothing in the registry
निर्यात · exports

What it exports

पाठ · the verses it cites

SS verses named in the header

none in the registry

नलिका · channels

The channels it runs in

not on a channel
कार्य · the functions

Every function, what it calls, who calls it

16 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.

An exact rational num/den as a decimal string with `places` digits after the point (BigInt long division).

calls nothing in the registry
ssPeriods()lines 53–68exported

The text's time-measures as exact rationals (days = num/den), each with a 12-place decimal.

ownPeriods(tier)lines 72–86exported

The same measures from the owner's own derived series (SiddhantaTier.bhaganas(): periodDays of the Earth, the Moon, the Moon's apogee and node, fitted by the owner). Returns null when the tier is not loaded.

Mean days between adhimāsas for a year and a synodic month: one extra lunation per (lunations − 12·years) count.

calls nothing in the registry
called by ownPeriods
kalaManaTable(tier)lines 91–97exported

काल-मान table: each measure, the text's exact value, the own series' value, and text − own in seconds.

called by nothing in the registry
yearComparison(tier)lines 101–126exported

The year comparison. Gregorian and Julian are definitions (calendar rules), not measurements; the own tropical year follows from its sidereal year and its own precession rate (the ayanāṃśa rate of SiddhantaTier).

called by nothing in the registry
aharganaOfJd(jd)lines 130–130exported

Civil days since midnight at Laṅkā at the Kali epoch (the site rule: t = jd − 588465.5 + MERIDIAN_DEG/360, D13).

calls nothing in the registry
jdOfAhargana(a)lines 131–131exported
calls nothing in the registry
ssMeanElongationDeg(jd)lines 134–137exported

The text's mean elongation (Moon − Sun, degrees) at jd: frac(ahargaṇa · lunations / civil days) · 360.

called by nothing in the registry
madhyamaAdhimasas(jd0, jd1)lines 142–157exported

The text's mean (madhyama) adhimāsas whose completion falls in [jd0, jd1): the k-th completes at ahargaṇa k·D/A exactly (D civil days, A adhimāsas per mahāyuga); the day part is exact BigInt, the fraction a double. Each { k, jd, ahargana:{ days, fraction:{num, den} } }. This is the text's mean accrual, not a civil adhika month.

called by nothing in the registry
idxOf(name)lines 160–160

── month naming ──────────────────────────────────────────────────────────────────────────────────────────────────

calls nothing in the registry
purnimanta(masa, paksha)lines 167–177exported

Pūrṇimānta naming from the amānta month and the pakṣa (pure: no extra tier call). A pūrṇimānta month runs full moon → full moon; its kṛṣṇa pakṣa comes first and carries the name of the NEXT amānta month; the śukla pakṣa shares the amānta name; an adhika month is kept whole (new moon → new moon) between the two halves of the nija month [the standard North-Indian convention; no local text states it]

calls idxOf
called by nothing in the registry
masaLabelSa(m)lines 180–186exported

The display label of a month: adhika → "अधिक X (पुरुषोत्तम / मल मास)", kṣaya → "X (क्षय मास · Y लुप्त)".

calls idxOf
called by nothing in the registry

Rows of the generated table (kala-mana-data.js) whose month overlaps [jd0, jd1).

calls nothing in the registry
called by nothing in the registry
nextAdhika(jd, n = 3, data)lines 196–200exported

The next n adhika months after jd from the generated table (n default 3).

calls nothing in the registry
called by nothing in the registry
formatDiffSa(sec)lines 203–210exported

A signed time difference in seconds as readable Hindi text (s / मिनट / घंटे / दिन).

calls nothing in the registry
called by nothing in the registry