UNPKG

@z-yue/calendar

Version:

根据当前阳(公)历日期获取阴(农)历日期,节日

23 lines (22 loc) 616 B
declare class Lunar { readonly now: string; private readonly publicDate; private readonly LOCALES; constructor(date?: Date); private match; get year(): string; get month(): number; get date(): number; get lunarMonth(): string; get lunarDate(): string; get isBigMonth(): boolean; get isSmallMonth(): boolean; get full(): string; isNewYear: () => boolean; isLantern: () => boolean; isDoubleSeventh: () => boolean; isMidAutumn: () => boolean; isDoubleNinth: () => boolean; get festival(): string; } export default Lunar;