jalali-ts
Version:
Parse and interact with jalali date
11 lines (10 loc) • 676 B
TypeScript
import { IDate } from './interface/IDate';
declare const toJalali: (date: Date) => IDate;
declare const toGregorian: (year: number, month: number, date: number) => IDate;
declare const monthLength: (year: number, month: number) => number;
declare const normalizeNumbers: (date: string) => string;
declare const normalizeHours: (date: string, hours: number) => number;
declare const normalizeMilliseconds: (ms: string) => number;
declare const zeroPad: (value: number, maxLength?: number) => string;
declare const throwError: (value: string) => never;
export { toJalali, toGregorian, monthLength, normalizeNumbers, normalizeHours, normalizeMilliseconds, zeroPad, throwError };