jalaliday
Version:
Persian (Jalali, Khorshidi) Plugin for Day.js
16 lines • 622 B
text/typescript
//#region src/intl/format.d.ts
interface FormatOptions {
locale: Intl.LocalesArgument;
defaultFormat: string;
timeZone: string;
}
declare function createFormatter(opts?: Partial<FormatOptions>): (date: Date, format?: string) => string;
/**
* Formats a Date object using a Day.js-like format string (limited to supported tokens).
* @param date - The Date object to format
* @param format - The format string (e.g., 'YYYY/MM/DD HH:mm:ss')
* @returns The formatted date string
*/
declare const formatDate: (date: Date, format?: string) => string;
//#endregion
export { FormatOptions, createFormatter, formatDate };