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

    Function findMuhurta

    • Scan [from, to] and return the windows where every rule holds. Edges are quantized to stepMinutes, so treat them as ±step accurate.

      Parameters

      Returns MuhurtaWindow[]

      findMuhurta({
      from, to, latitude: 27.7172, longitude: 85.324,
      timezone: 'Asia/Kathmandu',
      rules: { avoidRahuKaal: true, allowedVaars: [1, 3, 4, 5] },
      }); // → [{ start, end }, …] daylight windows outside Rahu Kaal