UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

19 lines • 851 B
import { ArithmeticModel } from "./nonIsoArithmetic.js"; export interface HebrewFields { year: number; /** Ordinal month, Tishri = 1; in a leap year Adar I (`M05L`) is 6. */ month: number; monthCode: string; day: number; } export declare function isHebrewLeapYear(year: number): boolean; /** Fixed day (R.D.) of Tishri 1 of `year`. */ export declare function hebrewNewYear(year: number): number; /** The Hebrew year, ordinal month, month code and day of a fixed day (R.D.). */ export declare function hebrewFieldsFromFixed(fixed: number): HebrewFields; /** * The Hebrew calendar as an integer arithmetic model for `nonIsoArithmetic.ts`, so add and until * are correct for years <= 0 too (D3 + D4). Every answer is this file's arithmetic; nothing is * read from the runtime. */ export declare const hebrewArithmeticModel: ArithmeticModel;