Closed sivachandran closed 2 years ago
Try
anga_span_finder = AngaSpanFinder.get_cached(ayanaamsha_id=Ayanamsha.CHITRA_AT_180, anga_type=AngaType.NAKSHATRA)
anga_span = anga_span_finder.get_spans_in_period(jd_start=jd1, jd_end=jd2, target_anga_id=YOUR_NAKSHATRA)
I am able find the Nakshatra for given date of birth using the following snippet
But I'm not sure how to find Nakshatra/star birthday in the current year. I'm thinking of finding Nakshatra current date/time then increment the hours/days until birth Nakshatra occurs.
Is this the right way to find Nakshatra/star birthday in the current year or is there a better way to do this?