Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Tithi is Amavasya end date is wrong #3

Open
vedictime opened this issue Mar 31, 2020 · 8 comments
Open

If Tithi is Amavasya end date is wrong #3

vedictime opened this issue Mar 31, 2020 · 8 comments

Comments

@vedictime
Copy link

vedictime commented Mar 31, 2020

select a date with tithi Amavasya, it will show next month date as end date.

1. Selected date 2020-04-23
{"Day":{"name":"Thursday"},"Tithi":{"name":"Amavasya","start":"2020-04-22T00:07:32.000Z","end":"2020-05-22T17:38:24.000Z"},"Nakshatra":{"name":"Ashwini","start":"2020-04-22T07:47:49.000Z","end":"2020-04-23T10:34:35.000Z"},"Karna":{"name":"Nagava","start":"2020-04-22T13:17:42.000Z","end":"2020-05-22T17:38:24.000Z"},"Yoga":{"name":"Prithi","start":"2020-04-22T16:45:25.000Z","end":"2020-04-23T17:28:13.000Z"},"Ayanamsa":{"name":"24 8'11""},"Raasi":{"name":"Mesha"},"version":"0.2"}

2. Selected date 2020-05-22
{"Day":{"name":"Friday"},"Tithi":{"name":"Amavasya","start":"2020-05-21T16:06:12.000Z","end":"2020-06-21T06:40:51.000Z"},"Nakshatra":{"name":"Kruthika","start":"2020-05-21T19:33:29.000Z","end":"2020-05-22T21:38:58.000Z"},"Karna":{"name":"Chatushpada","start":"2020-05-21T16:06:12.000Z","end":"2020-05-22T04:55:09.000Z"},"Yoga":{"name":"Sobhana","start":"2020-05-21T00:29:15.000Z","end":"2020-05-22T00:54:48.000Z"},"Ayanamsa":{"name":"24 8'15""},"Raasi":{"name":"Mesha"},"version":"0.2"}

Thanks

@satya319
Copy link

how can the traditional month be calculated? from the above tithis?

@vedictime
Copy link
Author

image

@Satheeshraj1
Copy link

Is there a way to get Tamil date for the given date.

@kotkota
Copy link

kotkota commented Jul 17, 2023

Same issue with wrong end date of Tithi and Karanam in Amavasya 🤔

scrnshot

panchang.calculate(new Date(1689582300000), () => console.log(panchang.Tithi.end) ) // Mon Jul 17 2023 16:25:00 GMT+0800 (Central Indonesia Time)
> Tue Jul 18 2023 02:31:37 GMT+0800 (Central Indonesia Time)

panchang.calculate(new Date(1689582400000), () => console.log(panchang.Tithi.end) ) // Mon Jul 17 2023 16:26:40 GMT+0800 (Central Indonesia Time)
> Wed Aug 16 2023 17:37:20 GMT+0800 (Central Indonesia Time)

@navdeepgupta2k
Copy link

Any one got any solution please share. If author of this code is active please let me know the solution so that i can rectify the error.

@schenna
Copy link
Owner

schenna commented Jul 23, 2023

I am not active on this project for a long time when I get time will try to fix this issue

@hmuralikrishna
Copy link
Contributor

hmuralikrishna commented Dec 15, 2023

how can the traditional month be calculated? from the above tithis?

Ans:
As per internet articles.

  1. Lunar months are usually named based on the Sun transitions into astrological signs. (~ Nakshatra on Pournami tithi)
  2. Example: If Sun transitioning into "Mesha" during the moon cycle, that month is named as "Chaitram".
  3. If there is NO transition of Sun into any Sign during the moon cycle, (happens nearly every 3 years), that month is named as Adhika Masam (Or Purushothama Masam). Same will be named as ADHIKA followed by UPCOMING MONTH NAME.

@satya319

@schenna
Copy link
Owner

schenna commented Dec 15, 2023

This code I wrote almost 15 years back. since then I lost the context. I don't have time to fix any bugs or enhancements. If anyone wants to contribute they are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants