-
Notifications
You must be signed in to change notification settings - Fork 0
/
java.time.zone.d.ts
146 lines (88 loc) · 3.81 KB
/
java.time.zone.d.ts
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/// <reference path="java.lang.d.ts" />
/// <reference path="java.time.d.ts" />
/// <reference path="java.util.d.ts" />
/// <reference path="java.io.d.ts" />
declare module '@afterburnerhq/java.time.zone' {
import { Enum, Throwable, Comparable, Class, String } from '@afterburnerhq/java.lang'
import { LocalDateTime, Month, DayOfWeek, DateTimeException, LocalTime, Instant, Duration, ZoneOffset } from '@afterburnerhq/java.time'
import { NavigableMap, List, Set } from '@afterburnerhq/java.util'
import { Serializable } from '@afterburnerhq/java.io'
export class ZoneOffsetTransition extends Object implements Comparable<ZoneOffsetTransition>, Serializable {
static of(arg0: LocalDateTime, arg1: ZoneOffset, arg2: ZoneOffset): ZoneOffsetTransition;
getInstant(): Instant;
toEpochSecond(): number;
getDateTimeBefore(): LocalDateTime;
getDateTimeAfter(): LocalDateTime;
getOffsetBefore(): ZoneOffset;
getOffsetAfter(): ZoneOffset;
getDuration(): Duration;
isGap(): boolean;
isOverlap(): boolean;
isValidOffset(arg0: ZoneOffset): boolean;
compareTo(arg0: ZoneOffsetTransition): number;
equals(arg0: Object): boolean;
hashCode(): number;
toString(): string;
}
export class ZoneOffsetTransitionRule implements Serializable {
static of(arg0: Month, arg1: number, arg2: DayOfWeek, arg3: LocalTime, arg4: boolean, arg5: ZoneOffsetTransitionRule.TimeDefinition, arg6: ZoneOffset, arg7: ZoneOffset, arg8: ZoneOffset): ZoneOffsetTransitionRule;
getMonth(): Month;
getDayOfMonthIndicator(): number;
getDayOfWeek(): DayOfWeek;
getLocalTime(): LocalTime;
isMidnightEndOfDay(): boolean;
getTimeDefinition(): ZoneOffsetTransitionRule.TimeDefinition;
getStandardOffset(): ZoneOffset;
getOffsetBefore(): ZoneOffset;
getOffsetAfter(): ZoneOffset;
createTransition(arg0: number): ZoneOffsetTransition;
equals(arg0: Object): boolean;
hashCode(): number;
toString(): string;
}
export namespace ZoneOffsetTransitionRule {
export class TimeDefinition extends Enum<ZoneOffsetTransitionRule.TimeDefinition> {
static UTC:ZoneOffsetTransitionRule.TimeDefinition
static WALL:ZoneOffsetTransitionRule.TimeDefinition
static STANDARD:ZoneOffsetTransitionRule.TimeDefinition
static values(): ZoneOffsetTransitionRule.TimeDefinition[];
static valueOf(arg0: String): ZoneOffsetTransitionRule.TimeDefinition;
createDateTime(arg0: LocalDateTime, arg1: ZoneOffset, arg2: ZoneOffset): LocalDateTime;
/**
* DO NOT USE
*/
static valueOf<T extends Enum<T>>(arg0: Class<T>, arg1: String): T;
}
}
export class ZoneRules implements Serializable {
static of(arg0: ZoneOffset, arg1: ZoneOffset, arg2: List<ZoneOffsetTransition>, arg3: List<ZoneOffsetTransition>, arg4: List<ZoneOffsetTransitionRule>): ZoneRules;
static of(arg0: ZoneOffset): ZoneRules;
isFixedOffset(): boolean;
getOffset(arg0: Instant): ZoneOffset;
getOffset(arg0: LocalDateTime): ZoneOffset;
getValidOffsets(arg0: LocalDateTime): List<ZoneOffset>;
getTransition(arg0: LocalDateTime): ZoneOffsetTransition;
getStandardOffset(arg0: Instant): ZoneOffset;
getDaylightSavings(arg0: Instant): Duration;
isDaylightSavings(arg0: Instant): boolean;
isValidOffset(arg0: LocalDateTime, arg1: ZoneOffset): boolean;
nextTransition(arg0: Instant): ZoneOffsetTransition;
previousTransition(arg0: Instant): ZoneOffsetTransition;
getTransitions(): List<ZoneOffsetTransition>;
getTransitionRules(): List<ZoneOffsetTransitionRule>;
equals(arg0: Object): boolean;
hashCode(): number;
toString(): string;
}
export class ZoneRulesException extends DateTimeException {
constructor(arg0: String);
constructor(arg0: String, arg1: Throwable);
}
export abstract class ZoneRulesProvider {
static getAvailableZoneIds(): Set<String>;
static getRules(arg0: String, arg1: boolean): ZoneRules;
static getVersions(arg0: String): NavigableMap<String, ZoneRules>;
static registerProvider(arg0: ZoneRulesProvider): void;
static refresh(): boolean;
}
}