lunar-typescript-optimize
Version:
A TypeScript library for Solar and Chinese Lunar calendar calculations, with optimized build and browser compatibility
24 lines (23 loc) • 806 B
TypeScript
import { Lunar } from './Lunar';
import { TaoFestival } from './TaoFestival';
export declare class Tao {
private readonly _lunar;
static BIRTH_YEAR: number;
constructor(lunar: Lunar);
static fromLunar(lunar: Lunar): Tao;
static fromYmdHms(lunarYear: number, lunarMonth: number, lunarDay: number, hour: number, minute: number, second: number): Tao;
static fromYmd(lunarYear: number, lunarMonth: number, lunarDay: number): Tao;
getLunar(): Lunar;
getYear(): number;
getMonth(): number;
getDay(): number;
getYearInChinese(): string;
getMonthInChinese(): string;
getDayInChinese(): string;
getFestivals(): TaoFestival[];
private _isDayIn;
isDayMingWu(): boolean;
isDayTianShe(): boolean;
toString(): string;
toFullString(): string;
}