Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Get the weekday (Vara) for a given Gregorian date.

      [Ch. I, v.52] The regents of the days (weekdays) follow the specific order of the planets (Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn). The vāra is authoritatively determined by the remainder of the Ahargana (Sum of Days) when divided by seven.

      Parameters

      • date: string | Date

        Modern Date or ISO string

      Returns number

      Weekday index (0=Ravivara/Sun, 1=Somavara/Moon, etc.)