gregorian-ethiopian-datepicker
Version:
A React date picker component supporting both Gregorian and Ethiopian calendars
32 lines (31 loc) • 982 B
TypeScript
/**
* Gregorian calendar utility functions
*/
/**
* Checks if a given Gregorian year is a leap year
*/
export declare const isGregorianLeapYear: (year: number) => boolean;
/**
* Gets the number of days in a Gregorian month
*/
export declare const getGregorianMonthDays: (year: number, month: number) => number;
/**
* Converts Gregorian date to Julian Day Number
*/
export declare const gregorianToJDN: (year: number, month: number, day: number) => number;
/**
* Converts Julian Day Number to Gregorian date
*/
export declare const jdnToGregorian: (jdn: number) => [number, number, number];
/**
* Validates a Gregorian date
*/
export declare const isValidGregorianDate: (year: number, month: number, day: number) => boolean;
/**
* Gets the name of a Gregorian month
*/
export declare const getGregorianMonthName: (month: number) => string;
/**
* Gets today's date in Gregorian calendar
*/
export declare const getCurrentGregorianDate: () => [number, number, number];