sbmdkl / nepali-date-converter

Javascript package to convert nepali date BS (Bikram Sambat) to AD and vice-versa.
8 stars 6 forks source link

List of number of days in a month and what after 2099? #1

Open PraveshKoirala opened 2 years ago

PraveshKoirala commented 2 years ago

Every conversion mechanism relies on a list of number of days in a month of a given year. This is done because the number of days per month in BS is variable (unlike AD). Where'd you get the list of number of days? And what happens if I want to predict something that's, say, 400 years back? Or, say 500 years forward?

remotemerge commented 2 years ago

@PraveshKoirala I have been thinking of this for a long time. I guess there are some mathematical things to format BS calendars. Probably the calendar designer does all this manually; every year. If we convert their calculation into computer programs, we may be able to calculate hundreds of years without tracking month days. The interesting part is why nobody publishes the math behind it and why?