grahan — the open-source sky engine
    Preparing search index...

    Function panchang

    • Compute the panchang for an instant at a location.

      Parameters

      Returns Panchang

      const p = panchang({
      date: new Date('1993-08-18T05:15:00Z'), // 11:00 NPT
      latitude: 27.0104,
      longitude: 84.8821,
      timezone: 'Asia/Kathmandu',
      });
      // p.tithi → { index: 0, paksha: 'shukla', name: 'Pratipada' }
      // p.nakshatra → { index: 9, name: 'Magha', pada: 3 }
      // p.vaar.name → 'Wednesday'