-
Notifications
You must be signed in to change notification settings - Fork 0
anmolpradhan/Date-Converter-Bikram-Sambat-to-English-Date
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Module to convert any nepali calendar date (Bikram Sambat) provided to English equivalent date (AD). Nepali Calendar does not have constant month days as English date has. It keeps on changing we can not create any algorithm and find what will be days for certain Nepali year and month. I hope some Panchang maker might come with infinite calendar years for Nepali Calendar. For now, we have to use lookup table when converting Nepali date to English date. We have to find mapping of first day of Bikram Sambat (BS)'s year to equivalent Gregorian date. Do this for every Nepali year you want to convert e.g. 2001 Baisakh 1 "13-Apr-1944" ......... .... 2068 Baisakh 1 "14-Apr-2011" To know all the number of days in each month Following URLs can be helpful. http://nepalicalendar.rat32.com/ http://www.nepalicalendar.com/ http://nepalipatro.com.np/ http://www.ashesh.com.np/nepali-calendar Steps involved in BS to AD conversion: 1. If we need to convert 2001 Ashar 6, find number of days elapsed since start of Bikram Sambat year(2001 Baisakh 1). a. Ashar is 3rd month(Baisakh,Jestha,Ashar) of BS as depicted in table. So number of days passed is 31+31+6-1 =67(number of days in Baisakh+number of days in Jestha+month_of_day-1). Where month_of_day is day of month which needs conversion. 1 is subtracted as Baisakh 1 has already included. b. Add number of days elapsed to Gregorian equivalent date (13 April 1944) eg (13 April 1944)+67=19 June 1944. Which is correctly converted Gregorian date of 2001 Ashar 6. About Bikram Sambat: http://en.wikipedia.org/wiki/Bikram_Samwat#Conversion http://en.wikipedia.org/wiki/Nepali_calendar
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%