UNPKG

@iro/calendar

Version:

lunar is a calendar library for Solar and Chinese Lunar.

16 lines (15 loc) 728 B
import { Dictionary } from './Dictionary'; export declare class SolarUtil { static WEEK: string[]; static DAYS_OF_MONTH: number[]; static XINGZUO: string[]; static FESTIVAL: Dictionary<string>; static OTHER_FESTIVAL: Dictionary<string[]>; static WEEK_FESTIVAL: Dictionary<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; }