zent
Version:
一套前端设计语言和基于React的实现
47 lines (46 loc) • 1.07 kB
TypeScript
export declare type FechaDays = [
string,
string,
string,
string,
string,
string,
string
];
export declare type FechaMonths = [
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string
];
export interface IFechaI18nSettings {
amPm: [string, string];
dayNames: FechaDays;
dayNamesShort: FechaDays;
monthNames: FechaMonths;
monthNamesShort: FechaMonths;
DoFn(D: number): string;
}
export interface IFechaMasks {
default: string;
fullDate: string;
longDate: string;
longTime: string;
mediumDate: string;
mediumTime: string;
shortDate: string;
shortTime: string;
[myMask: string]: string;
}
export declare const i18n: IFechaI18nSettings;
export declare const masks: IFechaMasks;
export declare function format(dateObj: Date | number, mask: string, i18nSettings?: IFechaI18nSettings): string;
export declare function parse(dateStr: string, format: string, i18nSettings?: IFechaI18nSettings): Date;