1
This commit is contained in:
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/timestamp.d.ts
vendored
Normal file
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/timestamp.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 将日期转为时间戳
|
||||
* @param date 字符串/日期/时间戳
|
||||
* @param format 解析格式 yyyy MM dd HH mm ss SSS
|
||||
*/
|
||||
export declare function timestamp(date: string | Date | number, format?: string | null): number;
|
||||
export declare function timestamp(date: any, format?: string | null): number;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
timestamp: typeof timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
export default timestamp
|
||||
Reference in New Issue
Block a user