NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/xe-utils/methods/date/toDateString.d.ts

37 lines
996 B
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { XEUtilsMethods } from '../xe-utils'
export interface ToDateStringOptions {
/**
*
* {
* formats: {
* q: ['日', '一', '二', '三', '四', '五', '六'],
* E: function (value, match, date) { return '三' }
* }
* }
*/
formats?: any
}
/**
* []
* @param date //
* @param format yyyy-MM-dd HH:mm:ss.SSS
* @param options
*/
export declare function toDateString(date: string | Date | number, format?: string, options?: ToDateStringOptions): string;
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
* []
* @param date //
* @param format yyyy-MM-dd HH:mm:ss.SSS
* @param options
*/
toDateString: typeof toDateString;
}
}
export default toDateString