UNPKG

@rato-guras-technology/nepali-date-picker

Version:
31 lines (30 loc) 1.06 kB
import type { NepaliDateObject } from "../types/types"; export declare class NepaliDate { private _year; private _month; private _day; private static readonly MIN_YEAR; private static readonly MAX_YEAR; private static readonly REF_NEPALI_DATE; private static readonly REF_GREGORIAN_DATE; constructor(year: number, month: number, day: number); private static getValidYear; static fromGregorian(date: Date): NepaliDate; static today(): NepaliDate; toGregorian(): Date; toObject(): NepaliDateObject; format(formatStr?: string): string; formatNepali(formatStr?: string): string; static getDaysInMonth(year: number, month: number): number; private validateDate; private static validateYearMonth; private static convertToNepali; private static convertToGregorian; get year(): number; get month(): number; get day(): number; addDays(days: number): NepaliDate; addMonths(months: number): NepaliDate; addYears(years: number): NepaliDate; private hexToRgba; }