Repository navigation
Expand file tree
/
Copy pathTimerFormat.d.ts
More file actions
77 lines (71 loc) · 2.14 KB
/
Copy pathTimerFormat.d.ts
File metadata and controls
77 lines (71 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*! ****
JsSimpleDateFormat v3.0.5
This library is for formatting and parsing date time
Copyright (C) AT Mulyana <atmulyana@yahoo.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License version 3.0
or later version
See http://gnu.org/licenses/lgpl.html
Visit https://github.com/atmulyana/JsSimpleDateFormat
*****/
import {JsSimpleDateFormat} from './JsSimpleDateFormat';
interface TimerSymbols {
fewSeconds: string;
aMinute: string;
minutes: string;
anHour: string;
hours: string;
aDay: string;
days: string;
aMonth: string;
months: string;
aYear: string;
years: string;
}
export declare class TimerFormatSymbols {
constructor(symbols: TimerSymbols | string);
getFewSeconds(): string;
getAMinute(): string;
getMinutes(): string;
getAnHour(): string;
getHours(): string;
getADay(): string;
getDays(): string;
getAMonth(): string;
getMonths(): string;
getAYear(): string;
getYears(): string;
setFewSeconds(s: string): void;
setAMinute(s: string): void;
setMinutes(s: string): void;
setAnHour(s: string): void;
setHours(s: string): void;
setADay(s: string): void;
setDays(s: string): void;
setAMonth(s: string): void;
setMonths(s: string): void;
setAYear(s: string): void;
setYears(s: string): void;
static __symbols__: {
[code: string]: {
fewSeconds: string,
aMinute: string,
minutes: string,
anHour: string,
hours: string,
aDay: string,
days: string,
aMonth: string,
months: string,
aYear: string,
years: string,
}
};
}
export declare class TimerFormat extends JsSimpleDateFormat {
constructor(sPattern?: string | null, param?: TimerFormatSymbols | string);
approxFormat(oDate: Date | number, sPrefix?: string | null, sSuffix?: string | null): string;
format(oDate: Date | number): string;
getTimerFormatSymbols(): TimerFormatSymbols;
setTimerFormatSymbols(oFormatSymbols: TimerFormatSymbols): void;
}