MenoData / Time4J

Advanced date, time and interval library for Java with sun/moon-astronomy and calendars like Chinese, Coptic, Ethiopian, French Republican, Hebrew, Hijri, Historic Christian, Indian National, Japanese, Julian, Korean, Minguo, Persian, Thai, Vietnamese
GNU Lesser General Public License v2.1
426 stars 62 forks source link

Support Bikram-Sambat-calendar (Nepal) #849

Open MenoData opened 5 years ago

MenoData commented 5 years ago

This is the official calendar in Nepal. See also:

A tabular-based solution is possible but only exists with limited data in the gregorian year range 1934-2023. An astronomical solution based on old hindu calendar as published in "Calendrical calculations" (Dershowitz/Reingold) should be evaluated, too.

This solar calendar needs to be distinguished from the lunar calendar called "Nepal Sambat". Latter one is used for the calculation of festivals/holidays.

pragyanone commented 1 year ago

I have always struggled to fully use open source apps (like GnuCash, Debitum) because of this issue. Bikram Sambat calendar is not supported yet by operating softwares (Windows, Android, etc), and it is unnatural for app developers to code a calendar separately.

I have a python script for date conversion from (and to) this system and the ubiquitous Gregorian calendar. (the python script)

And I lack the coding knowledge to contribute to the apps by adding this snippet of code.

MenoData commented 1 year ago

That seems to be great news to hear. A wider range "adStart, adEnd = "1918-4-13", "2039-4-12" would be nice. May I ask you what source do you get the data mapping from?

Anyway, I will try to find some time to implement the calendar in October or November. Before, I am unfortunately too busy with other things. Thank you for your contribution.

pragyanone commented 1 year ago

My source is https://pujann.com.np/ad-bs-converter.php.

I don't understand this project,Time4j. Is it a module that other developers can import in their apps (like GnuCash) ?

Also do you have any idea how Bikram Sambat calendar is calculated? Please share what you've gathered.

MenoData commented 1 year ago

Yes, Time4J is a Java library project which can be imported by Java apps (for example using Maven). The sister project Time4A is for Android apps.