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