1 |
|
2 | export declare enum TimeUnit {
|
3 | HOUR_24 = "hour24",
|
4 | HOUR_12 = "hour12",
|
5 | MINUTE = "minute",
|
6 | SECOND = "second",
|
7 | MS = "ms"
|
8 | }
|
9 |
|
10 | export declare function getTimeUnitPrintStr(unit: TimeUnit): string;
|
11 |
|
12 | export declare function getTimeUnit(unit: TimeUnit, date: Date): number;
|
13 |
|
14 | export declare function setTimeUnit(unit: TimeUnit, time: number, date: Date, isPm: boolean): Date;
|
15 |
|
16 | export declare function isTimeUnitValid(unit: TimeUnit, time?: number): boolean;
|
17 |
|
18 | export declare function wrapTimeAtUnit(unit: TimeUnit, time: number): number;
|
19 | export declare function getTimeUnitClassName(unit: TimeUnit): string;
|
20 | export declare function getTimeUnitMax(unit: TimeUnit): number;
|
21 | export declare function getTimeUnitMin(unit: TimeUnit): number;
|
22 | export declare function getDefaultMinTime(): Date;
|
23 | export declare function getDefaultMaxTime(): Date;
|