UNPKG

lunar-typescript-optimize

Version:

A TypeScript library for Solar and Chinese Lunar calendar calculations, with optimized build and browser compatibility

21 lines (20 loc) 745 B
export declare class SolarUtil { static WEEK: string[]; static DAYS_OF_MONTH: number[]; static XINGZUO: string[]; static FESTIVAL: { [key: string]: string; }; static OTHER_FESTIVAL: { [key: string]: string[]; }; static WEEK_FESTIVAL: { [key: string]: string; }; static isLeapYear(year: number): boolean; static getDaysOfMonth(year: number, month: number): number; static getDaysOfYear(year: number): number; static getDaysInYear(year: number, month: number, day: number): number; static getWeeksOfMonth(year: number, month: number, start: number): number; static getDaysBetween(ay: number, am: number, ad: number, by: number, bm: number, bd: number): number; }