NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/xe-utils/methods/date/timestamp.d.ts
2023-09-14 14:47:11 +08:00

22 lines
546 B
TypeScript

import { XEUtilsMethods } from '../xe-utils'
/**
* 将日期转为时间戳
* @param date 字符串/日期/时间戳
* @param format 解析格式 yyyy MM dd HH mm ss SSS
*/
export declare function timestamp(date: string | Date | number, format?: string): number;
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
* 将日期转为时间戳
* @param date 字符串/日期/时间戳
* @param format 解析格式 yyyy MM dd HH mm ss SSS
*/
timestamp: typeof timestamp;
}
}
export default timestamp