@calj.net/jdates
Version:
The Jewish Dates library from https://CalJ.net
50 lines (49 loc) • 1.41 kB
TypeScript
import { JDate } from "./JDate";
export declare enum HDateMonth {
TISHRI = 7,
CHESHVAN = 8,
KISLEV = 9,
TEVET = 10,
SHVAT = 11,
ADAR = 12,
ADAR2 = 13,
NISSAN = 1,
IYAR = 2,
SIVAN = 3,
TAMUZ = 4,
AV = 5,
ELUL = 6
}
export declare enum HDateYearType {
CHASERA = 1,
SDURA = 2,
SHLEMA = 3
}
export declare class HDate extends JDate {
static make(jdate: JDate): HDate;
static make(date: Date): HDate;
static make(day: number, month: number, year: number): HDate;
private constructor();
static today(): HDate;
getYear(): number;
getMonth(): HDateMonth;
getDay(): number;
getMonthLength(): number;
getNumberOfMonths(): number;
static monthsInYear(hyear: number): number;
static monthLength(hyear: number, month: HDateMonth): number;
private static monthLengthForType;
static embolismicYear(hyear: number): boolean;
plus(days: number): HDate;
isEmbolismic(): boolean;
getYearLength(): number;
getMonthName(): string;
static monthNames: readonly ["ניסן", "אייר", "סיון", "תמוז", "אב", "אלול", "תשרי", "חשון", "כסלו", "טבת", "שבט", "אדר", "אדר ב", "אדר א"];
private static hdnForYmd;
private static roshHashanaDay;
private calcFromHdn;
private year;
private month;
private day;
private yearType;
}