format.d.ts 630 B

1234567891011
  1. import { Locale } from '../locale/locale.class';
  2. import { DateFormatterFn } from '../types';
  3. export declare let formatFunctions: {
  4. [key: string]: (date: Date, locale: Locale, isUTC?: boolean, offset?: number) => string;
  5. };
  6. export declare let formatTokenFunctions: {
  7. [key: string]: DateFormatterFn;
  8. };
  9. export declare const formattingTokens: RegExp;
  10. export declare function addFormatToken(token: string, padded: [string, number, boolean], ordinal: string, callback: DateFormatterFn): void;
  11. export declare function makeFormatFunction(format: string): (date: Date, locale: Locale, isUTC?: boolean, offset?: number) => string;