UNPKG

blumjs

Version:
27 lines (26 loc) 930 B
import { CalendarBase } from "../calendarbase"; import { DateUnit } from "../dateunit"; import { Row } from "../elements"; export declare class Jalali implements CalendarBase { weekDayNames: string[]; weekFirstDay: number; monthNames: string[]; private monthLength; private leapYearMonthLength; getNameOfMonth(num: number): string; dateToString(date: Date, format: string): string; dateToDateUnit(date: Date): DateUnit; dateUnitToDate(date: DateUnit): Date; getMonthLength(date: DateUnit): number; weekHeaders(): Row; dayNumberOfMonthFirst(date: DateUnit): number; static jalaliToGregorian(year: any, month: any, day: any): Date; static gregorianToJalali(year: any, month: any, day: any): { jy: number; jm: any; jd: any; }; private static jalaliCal(jy); private static div(a, b); private static mod(a, b); }