UNPKG

@uiw/react-native

Version:
47 lines (46 loc) 1.15 kB
export interface CalendarProps { lunarHolidays: string; colorType: string; lunarMonth: string; lunar: string; } /** * 获取农历 * @returns CalendarProps */ export declare function getLunarCalendar(year: number, month: number, day: number, type?: string): CalendarProps; export interface lunarProps { years: number; months: number; days: number; isLeap: boolean; } /** * 处理农历年月日 * @returns lunarProps */ export declare function Lunar(year: number, month: number, day: number): lunarProps; /** *返回农历Y年的总天数 */ export declare function lYearDays(year: number): number; /** *返回农历Y年闰月的天数 */ export declare function leapDays(year: number): 0 | 30 | 29; /** *判断y年的农历中那个月是闰月 */ export declare function leapMonth(year: number): number; /** *返回农历y年m月的总天数 */ export declare function monthDays(year: number, month: number): 30 | 29; /** *获取y年的节气 */ export declare function sTermDate(year: number): string[]; /** *用中文显示农历的日期 */ export declare function cDay(day: number): string;