@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/java/io/File/index.d.ts +0 -120
- package/types/java/io/File/index.js +0 -2
- package/types/java/lang/Boolean/index.d.ts +0 -123
- package/types/java/lang/Boolean/index.js +1 -8
- package/types/java/lang/Class/index.d.ts +2 -93
- package/types/java/lang/Class/index.js +0 -1
- package/types/java/lang/ClassLoader/index.d.ts +0 -91
- package/types/java/lang/ClassLoader/index.js +0 -5
- package/types/java/lang/Double/index.d.ts +0 -541
- package/types/java/lang/Double/index.js +2 -13
- package/types/java/lang/Enum/index.d.ts +0 -23
- package/types/java/lang/Enum/index.js +0 -1
- package/types/java/lang/Float/index.d.ts +0 -494
- package/types/java/lang/Float/index.js +2 -13
- package/types/java/lang/Integer/index.d.ts +0 -780
- package/types/java/lang/Integer/index.js +2 -29
- package/types/java/lang/Long/index.d.ts +0 -788
- package/types/java/lang/Long/index.js +2 -28
- package/types/java/lang/Package/index.d.ts +0 -28
- package/types/java/lang/Package/index.js +0 -2
- package/types/java/lang/String/index.d.ts +0 -193
- package/types/java/lang/String/index.js +0 -4
- package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
- package/types/java/math/BigDecimal/index.d.ts +1 -40
- package/types/java/math/BigDecimal/index.js +0 -1
- package/types/java/math/BigInteger/index.d.ts +0 -25
- package/types/java/math/BigInteger/index.js +0 -2
- package/types/java/net/InetAddress/index.d.ts +0 -134
- package/types/java/net/InetAddress/index.js +1 -6
- package/types/java/net/NetworkInterface/index.d.ts +0 -50
- package/types/java/net/NetworkInterface/index.js +0 -4
- package/types/java/net/URI/index.d.ts +0 -22
- package/types/java/net/URI/index.js +0 -1
- package/types/java/net/URL/index.d.ts +0 -23
- package/types/java/net/URL/index.js +1 -2
- package/types/java/net/URLConnection/index.d.ts +0 -125
- package/types/java/net/URLConnection/index.js +1 -10
- package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
- package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
- package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
- package/types/java/nio/channels/FileChannel/index.js +0 -1
- package/types/java/nio/charset/Charset/index.d.ts +1 -58
- package/types/java/nio/charset/Charset/index.js +0 -4
- package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +0 -12
- package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
- package/types/java/text/DateFormat/index.d.ts +0 -130
- package/types/java/text/DateFormat/index.js +0 -5
- package/types/java/text/DateFormatSymbols/index.d.ts +0 -45
- package/types/java/text/DateFormatSymbols/index.js +0 -2
- package/types/java/text/NumberFormat/index.d.ts +0 -123
- package/types/java/text/NumberFormat/index.js +0 -6
- package/types/java/time/Clock/index.d.ts +1 -162
- package/types/java/time/Clock/index.js +0 -8
- package/types/java/time/Duration/index.d.ts +3 -193
- package/types/java/time/Duration/index.js +0 -10
- package/types/java/time/Instant/index.d.ts +0 -101
- package/types/java/time/Instant/index.js +0 -5
- package/types/java/time/LocalDate/index.d.ts +4 -134
- package/types/java/time/LocalDate/index.js +0 -6
- package/types/java/time/LocalDateTime/index.d.ts +7 -285
- package/types/java/time/LocalDateTime/index.js +0 -6
- package/types/java/time/LocalTime/index.d.ts +2 -146
- package/types/java/time/LocalTime/index.js +0 -6
- package/types/java/time/OffsetDateTime/index.d.ts +7 -177
- package/types/java/time/OffsetDateTime/index.js +0 -6
- package/types/java/time/OffsetTime/index.d.ts +3 -141
- package/types/java/time/OffsetTime/index.js +0 -5
- package/types/java/time/Period/index.d.ts +1 -135
- package/types/java/time/Period/index.js +0 -8
- package/types/java/time/ZoneId/index.d.ts +1 -121
- package/types/java/time/ZoneId/index.js +0 -5
- package/types/java/time/ZoneOffset/index.d.ts +1 -104
- package/types/java/time/ZoneOffset/index.js +0 -6
- package/types/java/time/ZonedDateTime/index.d.ts +6 -284
- package/types/java/time/ZonedDateTime/index.js +0 -7
- package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -215
- package/types/java/time/format/DateTimeFormatter/index.js +0 -6
- package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
- package/types/java/time/format/DecimalStyle/index.js +0 -3
- package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
- package/types/java/time/temporal/ValueRange/index.js +0 -1
- package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
- package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
- package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
- package/types/java/time/zone/ZoneRules/index.js +0 -1
- package/types/java/util/Calendar/index.d.ts +2 -67
- package/types/java/util/Calendar/index.js +0 -3
- package/types/java/util/Comparator/index.d.ts +16 -16
- package/types/java/util/Currency/index.d.ts +0 -38
- package/types/java/util/Currency/index.js +0 -2
- package/types/java/util/Date/index.d.ts +0 -160
- package/types/java/util/Date/index.js +0 -3
- package/types/java/util/Locale/index.d.ts +0 -344
- package/types/java/util/Locale/index.js +1 -11
- package/types/java/util/Optional/index.d.ts +0 -27
- package/types/java/util/Optional/index.js +0 -3
- package/types/java/util/OptionalDouble/index.d.ts +0 -15
- package/types/java/util/OptionalDouble/index.js +0 -2
- package/types/java/util/OptionalInt/index.d.ts +0 -15
- package/types/java/util/OptionalInt/index.js +0 -2
- package/types/java/util/OptionalLong/index.d.ts +0 -15
- package/types/java/util/OptionalLong/index.js +0 -2
- package/types/java/util/TimeZone/index.d.ts +0 -65
- package/types/java/util/TimeZone/index.js +0 -4
- package/types/javax/jcr/PropertyType/index.d.ts +2 -18
- package/types/javax/jcr/PropertyType/index.js +1 -4
- package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
- package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
- package/types/java/net/ContentHandler/index.d.ts +0 -70
- package/types/java/net/ContentHandler/index.js +0 -10
- package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
- package/types/java/net/ContentHandlerFactory/index.js +0 -10
- package/types/java/net/FileNameMap/index.d.ts +0 -16
- package/types/java/net/FileNameMap/index.js +0 -10
- package/types/java/net/URLStreamHandler/index.d.ts +0 -199
- package/types/java/net/URLStreamHandler/index.js +0 -19
- package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
- package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
- package/types/java/time/format/FormatStyle/index.d.ts +0 -14
- package/types/java/time/format/FormatStyle/index.js +0 -13
- package/types/java/util/Locale.Category/index.d.ts +0 -12
- package/types/java/util/Locale.Category/index.js +0 -11
- package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
- package/types/java/util/Locale.FilteringMode/index.js +0 -14
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import type { ZoneId } from "../ZoneId";
|
|
2
|
-
import type { Clock } from "../Clock";
|
|
3
|
-
|
|
4
|
-
import type { Month } from "../Month";
|
|
5
|
-
import type { LocalDate } from "../LocalDate";
|
|
6
|
-
import type { LocalTime } from "../LocalTime";
|
|
7
|
-
import type { Instant } from "../Instant";
|
|
8
|
-
|
|
9
|
-
import type { ZoneOffset } from "../ZoneOffset";
|
|
10
|
-
import type { TemporalAccessor } from "../temporal/TemporalAccessor";
|
|
11
|
-
import type { CharSequence } from "../../lang/CharSequence";
|
|
12
|
-
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
13
1
|
import type { TemporalField } from "../temporal/TemporalField";
|
|
14
2
|
|
|
15
3
|
import type { TemporalUnit } from "../temporal/TemporalUnit";
|
|
16
4
|
import type { ValueRange } from "../temporal/ValueRange";
|
|
5
|
+
|
|
6
|
+
import type { LocalDate } from "../LocalDate";
|
|
7
|
+
import type { Month } from "../Month";
|
|
17
8
|
import type { DayOfWeek } from "../DayOfWeek";
|
|
9
|
+
import type { LocalTime } from "../LocalTime";
|
|
18
10
|
import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
|
|
19
11
|
import type { TemporalAmount } from "../temporal/TemporalAmount";
|
|
20
12
|
import type { TemporalQuery } from "../temporal/TemporalQuery";
|
|
21
13
|
|
|
22
14
|
import type { Temporal } from "../temporal/Temporal";
|
|
15
|
+
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
23
16
|
import type { String } from "../../lang/String";
|
|
17
|
+
import type { ZoneOffset } from "../ZoneOffset";
|
|
24
18
|
import type { OffsetDateTime } from "../OffsetDateTime";
|
|
19
|
+
import type { ZoneId } from "../ZoneId";
|
|
25
20
|
import type { ZonedDateTime } from "../ZonedDateTime";
|
|
26
21
|
import type { ChronoLocalDateTime } from "../chrono/ChronoLocalDateTime";
|
|
27
22
|
import type { Object } from "../../lang/Object";
|
|
@@ -65,279 +60,6 @@ export type LocalDateTime = Object &
|
|
|
65
60
|
TemporalAdjuster &
|
|
66
61
|
ChronoLocalDateTime &
|
|
67
62
|
Serializable & {
|
|
68
|
-
/**
|
|
69
|
-
* Obtains the current date-time from the system clock in the default time-zone.
|
|
70
|
-
* <p>
|
|
71
|
-
* This will query the {@link Clock#systemDefaultZone() system clock} in the default
|
|
72
|
-
* time-zone to obtain the current date-time.
|
|
73
|
-
* <p>
|
|
74
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
75
|
-
* because the clock is hard-coded.
|
|
76
|
-
* @return the current date-time using the system clock and default time-zone, not null
|
|
77
|
-
*/
|
|
78
|
-
now(): LocalDateTime;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Obtains the current date-time from the system clock in the specified time-zone.
|
|
82
|
-
* <p>
|
|
83
|
-
* This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date-time.
|
|
84
|
-
* Specifying the time-zone avoids dependence on the default time-zone.
|
|
85
|
-
* <p>
|
|
86
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
87
|
-
* because the clock is hard-coded.
|
|
88
|
-
* @param zone the zone ID to use, not null
|
|
89
|
-
* @return the current date-time using the system clock, not null
|
|
90
|
-
*/
|
|
91
|
-
now(zone: ZoneId): LocalDateTime;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Obtains the current date-time from the specified clock.
|
|
95
|
-
* <p>
|
|
96
|
-
* This will query the specified clock to obtain the current date-time.
|
|
97
|
-
* Using this method allows the use of an alternate clock for testing.
|
|
98
|
-
* The alternate clock may be introduced using {@link Clock dependency injection}.
|
|
99
|
-
* @param clock the clock to use, not null
|
|
100
|
-
* @return the current date-time, not null
|
|
101
|
-
*/
|
|
102
|
-
now(clock: Clock): LocalDateTime;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Obtains an instance of {@code LocalDateTime} from year, month,
|
|
106
|
-
* day, hour and minute, setting the second and nanosecond to zero.
|
|
107
|
-
* <p>
|
|
108
|
-
* This returns a {@code LocalDateTime} with the specified year, month,
|
|
109
|
-
* day-of-month, hour and minute.
|
|
110
|
-
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
111
|
-
* The second and nanosecond fields will be set to zero.
|
|
112
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
113
|
-
* @param month the month-of-year to represent, not null
|
|
114
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
115
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
116
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
117
|
-
* @return the local date-time, not null
|
|
118
|
-
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
119
|
-
*/
|
|
120
|
-
of(
|
|
121
|
-
year: number,
|
|
122
|
-
month: Month,
|
|
123
|
-
dayOfMonth: number,
|
|
124
|
-
hour: number,
|
|
125
|
-
minute: number
|
|
126
|
-
): LocalDateTime;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Obtains an instance of {@code LocalDateTime} from year, month,
|
|
130
|
-
* day, hour, minute and second, setting the nanosecond to zero.
|
|
131
|
-
* <p>
|
|
132
|
-
* This returns a {@code LocalDateTime} with the specified year, month,
|
|
133
|
-
* day-of-month, hour, minute and second.
|
|
134
|
-
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
135
|
-
* The nanosecond field will be set to zero.
|
|
136
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
137
|
-
* @param month the month-of-year to represent, not null
|
|
138
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
139
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
140
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
141
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
142
|
-
* @return the local date-time, not null
|
|
143
|
-
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
144
|
-
*/
|
|
145
|
-
of(
|
|
146
|
-
year: number,
|
|
147
|
-
month: Month,
|
|
148
|
-
dayOfMonth: number,
|
|
149
|
-
hour: number,
|
|
150
|
-
minute: number,
|
|
151
|
-
second: number
|
|
152
|
-
): LocalDateTime;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Obtains an instance of {@code LocalDateTime} from year, month,
|
|
156
|
-
* day, hour, minute, second and nanosecond.
|
|
157
|
-
* <p>
|
|
158
|
-
* This returns a {@code LocalDateTime} with the specified year, month,
|
|
159
|
-
* day-of-month, hour, minute, second and nanosecond.
|
|
160
|
-
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
161
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
162
|
-
* @param month the month-of-year to represent, not null
|
|
163
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
164
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
165
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
166
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
167
|
-
* @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
|
|
168
|
-
* @return the local date-time, not null
|
|
169
|
-
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
170
|
-
*/
|
|
171
|
-
of(
|
|
172
|
-
year: number,
|
|
173
|
-
month: Month,
|
|
174
|
-
dayOfMonth: number,
|
|
175
|
-
hour: number,
|
|
176
|
-
minute: number,
|
|
177
|
-
second: number,
|
|
178
|
-
nanoOfSecond: number
|
|
179
|
-
): LocalDateTime;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Obtains an instance of {@code LocalDateTime} from year, month,
|
|
183
|
-
* day, hour and minute, setting the second and nanosecond to zero.
|
|
184
|
-
* <p>
|
|
185
|
-
* This returns a {@code LocalDateTime} with the specified year, month,
|
|
186
|
-
* day-of-month, hour and minute.
|
|
187
|
-
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
188
|
-
* The second and nanosecond fields will be set to zero.
|
|
189
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
190
|
-
* @param month the month-of-year to represent, from 1 (January) to 12 (December)
|
|
191
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
192
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
193
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
194
|
-
* @return the local date-time, not null
|
|
195
|
-
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
196
|
-
*/
|
|
197
|
-
of(
|
|
198
|
-
year: number,
|
|
199
|
-
month: number,
|
|
200
|
-
dayOfMonth: number,
|
|
201
|
-
hour: number,
|
|
202
|
-
minute: number
|
|
203
|
-
): LocalDateTime;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Obtains an instance of {@code LocalDateTime} from year, month,
|
|
207
|
-
* day, hour, minute and second, setting the nanosecond to zero.
|
|
208
|
-
* <p>
|
|
209
|
-
* This returns a {@code LocalDateTime} with the specified year, month,
|
|
210
|
-
* day-of-month, hour, minute and second.
|
|
211
|
-
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
212
|
-
* The nanosecond field will be set to zero.
|
|
213
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
214
|
-
* @param month the month-of-year to represent, from 1 (January) to 12 (December)
|
|
215
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
216
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
217
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
218
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
219
|
-
* @return the local date-time, not null
|
|
220
|
-
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
221
|
-
*/
|
|
222
|
-
of(
|
|
223
|
-
year: number,
|
|
224
|
-
month: number,
|
|
225
|
-
dayOfMonth: number,
|
|
226
|
-
hour: number,
|
|
227
|
-
minute: number,
|
|
228
|
-
second: number
|
|
229
|
-
): LocalDateTime;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Obtains an instance of {@code LocalDateTime} from year, month,
|
|
233
|
-
* day, hour, minute, second and nanosecond.
|
|
234
|
-
* <p>
|
|
235
|
-
* This returns a {@code LocalDateTime} with the specified year, month,
|
|
236
|
-
* day-of-month, hour, minute, second and nanosecond.
|
|
237
|
-
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
238
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
239
|
-
* @param month the month-of-year to represent, from 1 (January) to 12 (December)
|
|
240
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
241
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
242
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
243
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
244
|
-
* @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
|
|
245
|
-
* @return the local date-time, not null
|
|
246
|
-
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
247
|
-
*/
|
|
248
|
-
of(
|
|
249
|
-
year: number,
|
|
250
|
-
month: number,
|
|
251
|
-
dayOfMonth: number,
|
|
252
|
-
hour: number,
|
|
253
|
-
minute: number,
|
|
254
|
-
second: number,
|
|
255
|
-
nanoOfSecond: number
|
|
256
|
-
): LocalDateTime;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Obtains an instance of {@code LocalDateTime} from a date and time.
|
|
260
|
-
* @param date the local date, not null
|
|
261
|
-
* @param time the local time, not null
|
|
262
|
-
* @return the local date-time, not null
|
|
263
|
-
*/
|
|
264
|
-
of(date: LocalDate, time: LocalTime): LocalDateTime;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Obtains an instance of {@code LocalDateTime} from an {@code Instant} and zone ID.
|
|
268
|
-
* <p>
|
|
269
|
-
* This creates a local date-time based on the specified instant.
|
|
270
|
-
* First, the offset from UTC/Greenwich is obtained using the zone ID and instant,
|
|
271
|
-
* which is simple as there is only one valid offset for each instant.
|
|
272
|
-
* Then, the instant and offset are used to calculate the local date-time.
|
|
273
|
-
* @param instant the instant to create the date-time from, not null
|
|
274
|
-
* @param zone the time-zone, which may be an offset, not null
|
|
275
|
-
* @return the local date-time, not null
|
|
276
|
-
* @throws DateTimeException if the result exceeds the supported range
|
|
277
|
-
*/
|
|
278
|
-
ofInstant(instant: Instant, zone: ZoneId): LocalDateTime;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Obtains an instance of {@code LocalDateTime} using seconds from the
|
|
282
|
-
* epoch of 1970-01-01T00:00:00Z.
|
|
283
|
-
* <p>
|
|
284
|
-
* This allows the {@link ChronoField#INSTANT_SECONDS epoch-second} field
|
|
285
|
-
* to be converted to a local date-time. This is primarily intended for
|
|
286
|
-
* low-level conversions rather than general application usage.
|
|
287
|
-
* @param epochSecond the number of seconds from the epoch of 1970-01-01T00:00:00Z
|
|
288
|
-
* @param nanoOfSecond the nanosecond within the second, from 0 to 999,999,999
|
|
289
|
-
* @param offset the zone offset, not null
|
|
290
|
-
* @return the local date-time, not null
|
|
291
|
-
* @throws DateTimeException if the result exceeds the supported range,
 or if the nano-of-second is invalid
|
|
292
|
-
*/
|
|
293
|
-
ofEpochSecond(
|
|
294
|
-
epochSecond: number,
|
|
295
|
-
nanoOfSecond: number,
|
|
296
|
-
offset: ZoneOffset
|
|
297
|
-
): LocalDateTime;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Obtains an instance of {@code LocalDateTime} from a temporal object.
|
|
301
|
-
* <p>
|
|
302
|
-
* This obtains a local date-time based on the specified temporal.
|
|
303
|
-
* A {@code TemporalAccessor} represents an arbitrary set of date and time information,
|
|
304
|
-
* which this factory converts to an instance of {@code LocalDateTime}.
|
|
305
|
-
* <p>
|
|
306
|
-
* The conversion extracts and combines the {@code LocalDate} and the
|
|
307
|
-
* {@code LocalTime} from the temporal object.
|
|
308
|
-
* Implementations are permitted to perform optimizations such as accessing
|
|
309
|
-
* those fields that are equivalent to the relevant objects.
|
|
310
|
-
* <p>
|
|
311
|
-
* This method matches the signature of the functional interface {@link TemporalQuery}
|
|
312
|
-
* allowing it to be used as a query via method reference, {@code LocalDateTime::from}.
|
|
313
|
-
* @param temporal the temporal object to convert, not null
|
|
314
|
-
* @return the local date-time, not null
|
|
315
|
-
* @throws DateTimeException if unable to convert to a {@code LocalDateTime}
|
|
316
|
-
*/
|
|
317
|
-
from(temporal: TemporalAccessor): LocalDateTime;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Obtains an instance of {@code LocalDateTime} from a text string such as {@code 2007-12-03T10:15:30}.
|
|
321
|
-
* <p>
|
|
322
|
-
* The string must represent a valid date-time and is parsed using
|
|
323
|
-
* {@link java.time.format.DateTimeFormatter#ISO_LOCAL_DATE_TIME}.
|
|
324
|
-
* @param text the text to parse such as "2007-12-03T10:15:30", not null
|
|
325
|
-
* @return the parsed local date-time, not null
|
|
326
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
327
|
-
*/
|
|
328
|
-
parse(text: CharSequence): LocalDateTime;
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Obtains an instance of {@code LocalDateTime} from a text string using a specific formatter.
|
|
332
|
-
* <p>
|
|
333
|
-
* The text is parsed using the formatter, returning a date-time.
|
|
334
|
-
* @param text the text to parse, not null
|
|
335
|
-
* @param formatter the formatter to use, not null
|
|
336
|
-
* @return the parsed local date-time, not null
|
|
337
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
338
|
-
*/
|
|
339
|
-
parse(text: CharSequence, formatter: DateTimeFormatter): LocalDateTime;
|
|
340
|
-
|
|
341
63
|
/**
|
|
342
64
|
* Checks if the specified field is supported.
|
|
343
65
|
* <p>
|
|
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
now: function now() {},
|
|
9
|
-
of: function of() {},
|
|
10
|
-
ofInstant: function ofInstant() {},
|
|
11
|
-
ofEpochSecond: function ofEpochSecond() {},
|
|
12
|
-
from: function from() {},
|
|
13
|
-
parse: function parse() {},
|
|
14
8
|
isSupported: function isSupported() {},
|
|
15
9
|
range: function range() {},
|
|
16
10
|
get: function get() {},
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import type { ZoneId } from "../ZoneId";
|
|
2
|
-
import type { Clock } from "../Clock";
|
|
3
|
-
|
|
4
|
-
import type { TemporalAccessor } from "../temporal/TemporalAccessor";
|
|
5
|
-
import type { CharSequence } from "../../lang/CharSequence";
|
|
6
|
-
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
7
1
|
import type { TemporalField } from "../temporal/TemporalField";
|
|
8
2
|
|
|
9
3
|
import type { TemporalUnit } from "../temporal/TemporalUnit";
|
|
10
4
|
import type { ValueRange } from "../temporal/ValueRange";
|
|
5
|
+
|
|
11
6
|
import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
|
|
12
7
|
import type { TemporalAmount } from "../temporal/TemporalAmount";
|
|
13
8
|
import type { TemporalQuery } from "../temporal/TemporalQuery";
|
|
14
9
|
|
|
15
10
|
import type { Temporal } from "../temporal/Temporal";
|
|
11
|
+
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
16
12
|
import type { String } from "../../lang/String";
|
|
17
13
|
import type { LocalDate } from "../LocalDate";
|
|
18
14
|
import type { LocalDateTime } from "../LocalDateTime";
|
|
@@ -54,146 +50,6 @@ export type LocalTime = Object &
|
|
|
54
50
|
TemporalAdjuster &
|
|
55
51
|
Comparable &
|
|
56
52
|
Serializable & {
|
|
57
|
-
/**
|
|
58
|
-
* Obtains the current time from the system clock in the default time-zone.
|
|
59
|
-
* <p>
|
|
60
|
-
* This will query the {@link Clock#systemDefaultZone() system clock} in the default
|
|
61
|
-
* time-zone to obtain the current time.
|
|
62
|
-
* <p>
|
|
63
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
64
|
-
* because the clock is hard-coded.
|
|
65
|
-
* @return the current time using the system clock and default time-zone, not null
|
|
66
|
-
*/
|
|
67
|
-
now(): LocalTime;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Obtains the current time from the system clock in the specified time-zone.
|
|
71
|
-
* <p>
|
|
72
|
-
* This will query the {@link Clock#system(ZoneId) system clock} to obtain the current time.
|
|
73
|
-
* Specifying the time-zone avoids dependence on the default time-zone.
|
|
74
|
-
* <p>
|
|
75
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
76
|
-
* because the clock is hard-coded.
|
|
77
|
-
* @param zone the zone ID to use, not null
|
|
78
|
-
* @return the current time using the system clock, not null
|
|
79
|
-
*/
|
|
80
|
-
now(zone: ZoneId): LocalTime;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Obtains the current time from the specified clock.
|
|
84
|
-
* <p>
|
|
85
|
-
* This will query the specified clock to obtain the current time.
|
|
86
|
-
* Using this method allows the use of an alternate clock for testing.
|
|
87
|
-
* The alternate clock may be introduced using {@link Clock dependency injection}.
|
|
88
|
-
* @param clock the clock to use, not null
|
|
89
|
-
* @return the current time, not null
|
|
90
|
-
*/
|
|
91
|
-
now(clock: Clock): LocalTime;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Obtains an instance of {@code LocalTime} from an hour and minute.
|
|
95
|
-
* <p>
|
|
96
|
-
* This returns a {@code LocalTime} with the specified hour and minute.
|
|
97
|
-
* The second and nanosecond fields will be set to zero.
|
|
98
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
99
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
100
|
-
* @return the local time, not null
|
|
101
|
-
* @throws DateTimeException if the value of any field is out of range
|
|
102
|
-
*/
|
|
103
|
-
of(hour: number, minute: number): LocalTime;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Obtains an instance of {@code LocalTime} from an hour, minute and second.
|
|
107
|
-
* <p>
|
|
108
|
-
* This returns a {@code LocalTime} with the specified hour, minute and second.
|
|
109
|
-
* The nanosecond field will be set to zero.
|
|
110
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
111
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
112
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
113
|
-
* @return the local time, not null
|
|
114
|
-
* @throws DateTimeException if the value of any field is out of range
|
|
115
|
-
*/
|
|
116
|
-
of(hour: number, minute: number, second: number): LocalTime;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Obtains an instance of {@code LocalTime} from an hour, minute, second and nanosecond.
|
|
120
|
-
* <p>
|
|
121
|
-
* This returns a {@code LocalTime} with the specified hour, minute, second and nanosecond.
|
|
122
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
123
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
124
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
125
|
-
* @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
|
|
126
|
-
* @return the local time, not null
|
|
127
|
-
* @throws DateTimeException if the value of any field is out of range
|
|
128
|
-
*/
|
|
129
|
-
of(
|
|
130
|
-
hour: number,
|
|
131
|
-
minute: number,
|
|
132
|
-
second: number,
|
|
133
|
-
nanoOfSecond: number
|
|
134
|
-
): LocalTime;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Obtains an instance of {@code LocalTime} from a second-of-day value.
|
|
138
|
-
* <p>
|
|
139
|
-
* This returns a {@code LocalTime} with the specified second-of-day.
|
|
140
|
-
* The nanosecond field will be set to zero.
|
|
141
|
-
* @param secondOfDay the second-of-day, from {@code 0} to {@code 24 * 60 * 60 - 1}
|
|
142
|
-
* @return the local time, not null
|
|
143
|
-
* @throws DateTimeException if the second-of-day value is invalid
|
|
144
|
-
*/
|
|
145
|
-
ofSecondOfDay(secondOfDay: number): LocalTime;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Obtains an instance of {@code LocalTime} from a nanos-of-day value.
|
|
149
|
-
* <p>
|
|
150
|
-
* This returns a {@code LocalTime} with the specified nanosecond-of-day.
|
|
151
|
-
* @param nanoOfDay the nano of day, from {@code 0} to {@code 24 * 60 * 60 * 1,000,000,000 - 1}
|
|
152
|
-
* @return the local time, not null
|
|
153
|
-
* @throws DateTimeException if the nanos of day value is invalid
|
|
154
|
-
*/
|
|
155
|
-
ofNanoOfDay(nanoOfDay: number): LocalTime;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Obtains an instance of {@code LocalTime} from a temporal object.
|
|
159
|
-
* <p>
|
|
160
|
-
* This obtains a local time based on the specified temporal.
|
|
161
|
-
* A {@code TemporalAccessor} represents an arbitrary set of date and time information,
|
|
162
|
-
* which this factory converts to an instance of {@code LocalTime}.
|
|
163
|
-
* <p>
|
|
164
|
-
* The conversion uses the {@link TemporalQueries#localTime()} query, which relies
|
|
165
|
-
* on extracting the {@link ChronoField#NANO_OF_DAY NANO_OF_DAY} field.
|
|
166
|
-
* <p>
|
|
167
|
-
* This method matches the signature of the functional interface {@link TemporalQuery}
|
|
168
|
-
* allowing it to be used as a query via method reference, {@code LocalTime::from}.
|
|
169
|
-
* @param temporal the temporal object to convert, not null
|
|
170
|
-
* @return the local time, not null
|
|
171
|
-
* @throws DateTimeException if unable to convert to a {@code LocalTime}
|
|
172
|
-
*/
|
|
173
|
-
from(temporal: TemporalAccessor): LocalTime;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Obtains an instance of {@code LocalTime} from a text string such as {@code 10:15}.
|
|
177
|
-
* <p>
|
|
178
|
-
* The string must represent a valid time and is parsed using
|
|
179
|
-
* {@link java.time.format.DateTimeFormatter#ISO_LOCAL_TIME}.
|
|
180
|
-
* @param text the text to parse such as "10:15:30", not null
|
|
181
|
-
* @return the parsed local time, not null
|
|
182
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
183
|
-
*/
|
|
184
|
-
parse(text: CharSequence): LocalTime;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Obtains an instance of {@code LocalTime} from a text string using a specific formatter.
|
|
188
|
-
* <p>
|
|
189
|
-
* The text is parsed using the formatter, returning a time.
|
|
190
|
-
* @param text the text to parse, not null
|
|
191
|
-
* @param formatter the formatter to use, not null
|
|
192
|
-
* @return the parsed local time, not null
|
|
193
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
194
|
-
*/
|
|
195
|
-
parse(text: CharSequence, formatter: DateTimeFormatter): LocalTime;
|
|
196
|
-
|
|
197
53
|
/**
|
|
198
54
|
* Checks if the specified field is supported.
|
|
199
55
|
* <p>
|
|
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
now: function now() {},
|
|
9
|
-
of: function of() {},
|
|
10
|
-
ofSecondOfDay: function ofSecondOfDay() {},
|
|
11
|
-
ofNanoOfDay: function ofNanoOfDay() {},
|
|
12
|
-
from: function from() {},
|
|
13
|
-
parse: function parse() {},
|
|
14
8
|
isSupported: function isSupported() {},
|
|
15
9
|
range: function range() {},
|
|
16
10
|
get: function get() {},
|