UNPKG

nepalipatrojs

Version:

A JavaScript library for Nepali date conversion and calendar utilities

14 lines 600 B
import { NepaliDate } from '../types'; /** * Converts a Gregorian (AD) date to Bikram Sambat (BS) date * @param date Date to convert, can be a Date object or [year, month, day] array * @returns NepaliDate object representing the equivalent BS date * @throws Error if date is in invalid format or out of supported range */ export declare function convertADToBS(date: Date | number[]): NepaliDate; /** * Gets the current date in Bikram Sambat calendar * @returns Current date as NepaliDate object */ export declare function getCurrentBSDate(): NepaliDate; //# sourceMappingURL=ad-to-bs.d.ts.map