15 lines
539 B
TypeScript
15 lines
539 B
TypeScript
export declare function timeFormat(time: any, mask: any): string;
|
|||
|
|
/**
|
||
|
|
* 转换成时间戳
|
||
|
|
* @param value 时间值
|
||
|
|
*/
|
||
|
|
export declare function toTimeStamp(value: any): number;
|
||
|
|
declare const SECOND = 1000;
|
||
|
|
declare const MINUTE: number;
|
||
|
|
declare const HOUR: number;
|
||
|
|
declare const DAY: number;
|
||
|
|
declare const MONTH: number;
|
||
|
|
declare const YEAR: number;
|
||
|
|
export { SECOND, MINUTE, HOUR, DAY, MONTH, YEAR };
|
||
|
|
declare type Interval = [string, number];
|
||
|
|
export declare function getTickInterval(min: number, max: number, tickCount: number): Interval;
|