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.

16 lines • 711 B
import { ArithmeticModel } from "./nonIsoArithmetic.js"; /** Saka year = Gregorian year of its Chaitra 1 minus this. */ export declare const SAKA_YEAR_OFFSET = 78; export interface IndianFields { year: number; month: number; monthCode: string; day: number; } /** The Saka year, month, month code and day of a proleptic Gregorian (ISO) date. */ export declare function indianFieldsFromIso(isoYear: number, isoMonth: number, isoDay: number): IndianFields; /** * The Indian calendar as an integer arithmetic model for `nonIsoArithmetic.ts`, so add and until * are correct before ISO year 1 too (D5). Every answer is this file's arithmetic. */ export declare const indianArithmeticModel: ArithmeticModel;