Convert a Bikram Sambat date to a Gregorian date and store it in the instance.
Bikram Sambat year
Bikram Sambat month (1-12)
Bikram Sambat day (1-32)
Example Usage: // Create an instance of the Bikram class const bikram = new Bikram();
// Bikram Sambat date to convert const bsYear = 2080; const bsMonth = 5; const bsDay = 15;
// Convert to Gregorian date and store in the instance bikram.fromNepali(bsYear, bsMonth, bsDay);
// Access the stored Gregorian date
console.log(Gregorian Year: ${bikram.Year}
);
console.log(Gregorian Month: ${bikram.Month + 1}
); // Adjust back to 1-based month
console.log(Gregorian Day: ${bikram.Day}
);
Convert a Bikram Sambat date to a Gregorian date.
Bikram Sambat year
Bikram Sambat month (1-12)
Bikram Sambat day (1-31)
Object containing year, month, and day
Get the number of days in a given Bikram Sambat month.