UNPKG

tav-ui

Version:
11 lines (10 loc) 577 B
/** * Independent time operation tool to facilitate subsequent switch to dayjs */ import dayjs from 'dayjs'; export declare function formatToDateTime(date: dayjs.Dayjs | string, format?: string): string; export declare function formatToDate(date: dayjs.Dayjs | string, format?: string): string; export declare function formatToTimestamp(date: string, format?: string): number; export declare function formatToExcelTime(date: string): number; export declare const dateUtil: typeof dayjs; export declare function getMomentFormatString(date: any, valueFormat?: string): string;