ngx-bootstrap
Version:
Native Angular Bootstrap Components
14 lines (13 loc) • 594 B
TypeScript
import { Locale } from './locale/locale.class';
import { DateFormatterFn } from '../datepicker/models/index';
export declare let formatFunctions: {
[key: string]: (date: Date, locale: Locale) => string;
};
export declare let formatTokenFunctions: {
[key: string]: DateFormatterFn;
};
export declare const formattingTokens: RegExp;
export declare function addFormatToken(token: string, padded: {
[key: number]: any;
}, ordinal: string, callback: DateFormatterFn): void;
export declare function makeFormatFunction(format: string): (date: Date, locale: Locale) => string;