@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.3
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/server/ArraysInstance/index.d.ts +1 -1
- package/server/CollectionsInstance/index.d.ts +1 -1
- package/server/NodeTypeUtil/index.d.ts +1 -1
- package/server/PermissionUtil/index.d.ts +3 -3
- package/server/Properties/index.d.ts +7 -4
- package/server/TagUtil/index.d.ts +1 -1
- package/types/java/io/File/index.d.ts +0 -120
- package/types/java/io/File/index.js +0 -2
- package/types/java/io/PrintStream/index.d.ts +4 -4
- package/types/java/io/PrintWriter/index.d.ts +4 -4
- 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 +9 -97
- 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/lang/reflect/Constructor/index.d.ts +1 -1
- package/types/java/lang/reflect/Method/index.d.ts +1 -1
- 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/FileSystem/index.d.ts +1 -1
- package/types/java/nio/file/Path/index.d.ts +3 -3
- package/types/java/nio/file/Watchable/index.d.ts +2 -2
- package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +18 -26
- 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 +7 -52
- 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 +4 -217
- 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/java/util/stream/Collector/index.d.ts +2 -2
- package/types/java/util/stream/DoubleStream/index.d.ts +1 -1
- package/types/java/util/stream/IntStream/index.d.ts +1 -1
- package/types/java/util/stream/LongStream/index.d.ts +1 -1
- package/types/java/util/stream/Stream/index.d.ts +1 -1
- package/types/javax/jcr/PropertyType/index.d.ts +2 -18
- package/types/javax/jcr/PropertyType/index.js +1 -4
- package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
- package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
- package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +2 -2
- package/types/javax/jcr/observation/ObservationManager/index.d.ts +4 -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,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() {},
|
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import type { Comparator } from "../../util/Comparator";
|
|
2
|
-
import type { ZoneId } from "../ZoneId";
|
|
3
|
-
import type { Clock } from "../Clock";
|
|
4
|
-
import type { LocalDate } from "../LocalDate";
|
|
5
|
-
import type { LocalTime } from "../LocalTime";
|
|
6
|
-
import type { ZoneOffset } from "../ZoneOffset";
|
|
7
|
-
import type { LocalDateTime } from "../LocalDateTime";
|
|
8
|
-
|
|
9
|
-
import type { Instant } from "../Instant";
|
|
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";
|
|
17
5
|
|
|
6
|
+
import type { ZoneOffset } from "../ZoneOffset";
|
|
7
|
+
import type { LocalDateTime } from "../LocalDateTime";
|
|
8
|
+
import type { LocalDate } from "../LocalDate";
|
|
18
9
|
import type { Month } from "../Month";
|
|
19
10
|
import type { DayOfWeek } from "../DayOfWeek";
|
|
11
|
+
import type { LocalTime } from "../LocalTime";
|
|
20
12
|
import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
|
|
21
13
|
import type { TemporalAmount } from "../temporal/TemporalAmount";
|
|
22
14
|
import type { TemporalQuery } from "../temporal/TemporalQuery";
|
|
23
15
|
|
|
24
16
|
import type { Temporal } from "../temporal/Temporal";
|
|
17
|
+
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
25
18
|
import type { String } from "../../lang/String";
|
|
19
|
+
import type { ZoneId } from "../ZoneId";
|
|
26
20
|
import type { ZonedDateTime } from "../ZonedDateTime";
|
|
27
21
|
import type { OffsetTime } from "../OffsetTime";
|
|
22
|
+
import type { Instant } from "../Instant";
|
|
28
23
|
import type { Object } from "../../lang/Object";
|
|
29
24
|
import type { Comparable } from "../../lang/Comparable";
|
|
30
25
|
import type { Serializable } from "../../io/Serializable";
|
|
@@ -63,171 +58,6 @@ export type OffsetDateTime = Object &
|
|
|
63
58
|
TemporalAdjuster &
|
|
64
59
|
Comparable &
|
|
65
60
|
Serializable & {
|
|
66
|
-
/**
|
|
67
|
-
* Gets a comparator that compares two {@code OffsetDateTime} instances
|
|
68
|
-
* based solely on the instant.
|
|
69
|
-
* <p>
|
|
70
|
-
* This method differs from the comparison in {@link #compareTo} in that it
|
|
71
|
-
* only compares the underlying instant.
|
|
72
|
-
* @return a comparator that compares in time-line order
|
|
73
|
-
* @see #isAfter
|
|
74
|
-
* @see #isBefore
|
|
75
|
-
* @see #isEqual
|
|
76
|
-
*/
|
|
77
|
-
timeLineOrder(): Comparator;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Obtains the current date-time from the system clock in the default time-zone.
|
|
81
|
-
* <p>
|
|
82
|
-
* This will query the {@link Clock#systemDefaultZone() system clock} in the default
|
|
83
|
-
* time-zone to obtain the current date-time.
|
|
84
|
-
* The offset will be calculated from the time-zone in the clock.
|
|
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
|
-
* @return the current date-time using the system clock, not null
|
|
89
|
-
*/
|
|
90
|
-
now(): OffsetDateTime;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Obtains the current date-time from the system clock in the specified time-zone.
|
|
94
|
-
* <p>
|
|
95
|
-
* This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date-time.
|
|
96
|
-
* Specifying the time-zone avoids dependence on the default time-zone.
|
|
97
|
-
* The offset will be calculated from the specified time-zone.
|
|
98
|
-
* <p>
|
|
99
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
100
|
-
* because the clock is hard-coded.
|
|
101
|
-
* @param zone the zone ID to use, not null
|
|
102
|
-
* @return the current date-time using the system clock, not null
|
|
103
|
-
*/
|
|
104
|
-
now(zone: ZoneId): OffsetDateTime;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Obtains the current date-time from the specified clock.
|
|
108
|
-
* <p>
|
|
109
|
-
* This will query the specified clock to obtain the current date-time.
|
|
110
|
-
* The offset will be calculated from the time-zone in the clock.
|
|
111
|
-
* <p>
|
|
112
|
-
* Using this method allows the use of an alternate clock for testing.
|
|
113
|
-
* The alternate clock may be introduced using {@link Clock dependency injection}.
|
|
114
|
-
* @param clock the clock to use, not null
|
|
115
|
-
* @return the current date-time, not null
|
|
116
|
-
*/
|
|
117
|
-
now(clock: Clock): OffsetDateTime;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Obtains an instance of {@code OffsetDateTime} from a date, time and offset.
|
|
121
|
-
* <p>
|
|
122
|
-
* This creates an offset date-time with the specified local date, time and offset.
|
|
123
|
-
* @param date the local date, not null
|
|
124
|
-
* @param time the local time, not null
|
|
125
|
-
* @param offset the zone offset, not null
|
|
126
|
-
* @return the offset date-time, not null
|
|
127
|
-
*/
|
|
128
|
-
of(date: LocalDate, time: LocalTime, offset: ZoneOffset): OffsetDateTime;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Obtains an instance of {@code OffsetDateTime} from a date-time and offset.
|
|
132
|
-
* <p>
|
|
133
|
-
* This creates an offset date-time with the specified local date-time and offset.
|
|
134
|
-
* @param dateTime the local date-time, not null
|
|
135
|
-
* @param offset the zone offset, not null
|
|
136
|
-
* @return the offset date-time, not null
|
|
137
|
-
*/
|
|
138
|
-
of(dateTime: LocalDateTime, offset: ZoneOffset): OffsetDateTime;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Obtains an instance of {@code OffsetDateTime} from a year, month, day,
|
|
142
|
-
* hour, minute, second, nanosecond and offset.
|
|
143
|
-
* <p>
|
|
144
|
-
* This creates an offset date-time with the seven specified fields.
|
|
145
|
-
* <p>
|
|
146
|
-
* This method exists primarily for writing test cases.
|
|
147
|
-
* Non test-code will typically use other methods to create an offset time.
|
|
148
|
-
* {@code LocalDateTime} has five additional convenience variants of the
|
|
149
|
-
* equivalent factory method taking fewer arguments.
|
|
150
|
-
* They are not provided here to reduce the footprint of the API.
|
|
151
|
-
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
152
|
-
* @param month the month-of-year to represent, from 1 (January) to 12 (December)
|
|
153
|
-
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
154
|
-
* @param hour the hour-of-day to represent, from 0 to 23
|
|
155
|
-
* @param minute the minute-of-hour to represent, from 0 to 59
|
|
156
|
-
* @param second the second-of-minute to represent, from 0 to 59
|
|
157
|
-
* @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
|
|
158
|
-
* @param offset the zone offset, not null
|
|
159
|
-
* @return the offset date-time, not null
|
|
160
|
-
* @throws DateTimeException if the value of any field is out of range, or
 if the day-of-month is invalid for the month-year
|
|
161
|
-
*/
|
|
162
|
-
of(
|
|
163
|
-
year: number,
|
|
164
|
-
month: number,
|
|
165
|
-
dayOfMonth: number,
|
|
166
|
-
hour: number,
|
|
167
|
-
minute: number,
|
|
168
|
-
second: number,
|
|
169
|
-
nanoOfSecond: number,
|
|
170
|
-
offset: ZoneOffset
|
|
171
|
-
): OffsetDateTime;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Obtains an instance of {@code OffsetDateTime} from an {@code Instant} and zone ID.
|
|
175
|
-
* <p>
|
|
176
|
-
* This creates an offset date-time with the same instant as that specified.
|
|
177
|
-
* Finding the offset from UTC/Greenwich is simple as there is only one valid
|
|
178
|
-
* offset for each instant.
|
|
179
|
-
* @param instant the instant to create the date-time from, not null
|
|
180
|
-
* @param zone the time-zone, which may be an offset, not null
|
|
181
|
-
* @return the offset date-time, not null
|
|
182
|
-
* @throws DateTimeException if the result exceeds the supported range
|
|
183
|
-
*/
|
|
184
|
-
ofInstant(instant: Instant, zone: ZoneId): OffsetDateTime;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Obtains an instance of {@code OffsetDateTime} from a temporal object.
|
|
188
|
-
* <p>
|
|
189
|
-
* This obtains an offset date-time based on the specified temporal.
|
|
190
|
-
* A {@code TemporalAccessor} represents an arbitrary set of date and time information,
|
|
191
|
-
* which this factory converts to an instance of {@code OffsetDateTime}.
|
|
192
|
-
* <p>
|
|
193
|
-
* The conversion will first obtain a {@code ZoneOffset} from the temporal object.
|
|
194
|
-
* It will then try to obtain a {@code LocalDateTime}, falling back to an {@code Instant} if necessary.
|
|
195
|
-
* The result will be the combination of {@code ZoneOffset} with either
|
|
196
|
-
* with {@code LocalDateTime} or {@code Instant}.
|
|
197
|
-
* Implementations are permitted to perform optimizations such as accessing
|
|
198
|
-
* those fields that are equivalent to the relevant objects.
|
|
199
|
-
* <p>
|
|
200
|
-
* This method matches the signature of the functional interface {@link TemporalQuery}
|
|
201
|
-
* allowing it to be used as a query via method reference, {@code OffsetDateTime::from}.
|
|
202
|
-
* @param temporal the temporal object to convert, not null
|
|
203
|
-
* @return the offset date-time, not null
|
|
204
|
-
* @throws DateTimeException if unable to convert to an {@code OffsetDateTime}
|
|
205
|
-
*/
|
|
206
|
-
from(temporal: TemporalAccessor): OffsetDateTime;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Obtains an instance of {@code OffsetDateTime} from a text string
|
|
210
|
-
* such as {@code 2007-12-03T10:15:30+01:00}.
|
|
211
|
-
* <p>
|
|
212
|
-
* The string must represent a valid date-time and is parsed using
|
|
213
|
-
* {@link java.time.format.DateTimeFormatter#ISO_OFFSET_DATE_TIME}.
|
|
214
|
-
* @param text the text to parse such as "2007-12-03T10:15:30+01:00", not null
|
|
215
|
-
* @return the parsed offset date-time, not null
|
|
216
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
217
|
-
*/
|
|
218
|
-
parse(text: CharSequence): OffsetDateTime;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Obtains an instance of {@code OffsetDateTime} from a text string using a specific formatter.
|
|
222
|
-
* <p>
|
|
223
|
-
* The text is parsed using the formatter, returning a date-time.
|
|
224
|
-
* @param text the text to parse, not null
|
|
225
|
-
* @param formatter the formatter to use, not null
|
|
226
|
-
* @return the parsed offset date-time, not null
|
|
227
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
228
|
-
*/
|
|
229
|
-
parse(text: CharSequence, formatter: DateTimeFormatter): OffsetDateTime;
|
|
230
|
-
|
|
231
61
|
/**
|
|
232
62
|
* Checks if the specified field is supported.
|
|
233
63
|
* <p>
|
|
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
timeLineOrder: function timeLineOrder() {},
|
|
9
|
-
now: function now() {},
|
|
10
|
-
of: function of() {},
|
|
11
|
-
ofInstant: function ofInstant() {},
|
|
12
|
-
from: function from() {},
|
|
13
|
-
parse: function parse() {},
|
|
14
8
|
isSupported: function isSupported() {},
|
|
15
9
|
range: function range() {},
|
|
16
10
|
get: function get() {},
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import type { ZoneId } from "../ZoneId";
|
|
2
|
-
import type { Clock } from "../Clock";
|
|
3
|
-
import type { LocalTime } from "../LocalTime";
|
|
4
|
-
import type { ZoneOffset } from "../ZoneOffset";
|
|
5
|
-
|
|
6
|
-
import type { Instant } from "../Instant";
|
|
7
|
-
import type { TemporalAccessor } from "../temporal/TemporalAccessor";
|
|
8
|
-
import type { CharSequence } from "../../lang/CharSequence";
|
|
9
|
-
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
10
1
|
import type { TemporalField } from "../temporal/TemporalField";
|
|
11
2
|
|
|
12
3
|
import type { TemporalUnit } from "../temporal/TemporalUnit";
|
|
13
4
|
import type { ValueRange } from "../temporal/ValueRange";
|
|
14
5
|
|
|
6
|
+
import type { ZoneOffset } from "../ZoneOffset";
|
|
7
|
+
import type { LocalTime } from "../LocalTime";
|
|
15
8
|
import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
|
|
16
9
|
import type { TemporalAmount } from "../temporal/TemporalAmount";
|
|
17
10
|
import type { TemporalQuery } from "../temporal/TemporalQuery";
|
|
18
11
|
|
|
19
12
|
import type { Temporal } from "../temporal/Temporal";
|
|
13
|
+
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
20
14
|
import type { String } from "../../lang/String";
|
|
21
15
|
import type { LocalDate } from "../LocalDate";
|
|
22
16
|
import type { OffsetDateTime } from "../OffsetDateTime";
|
|
@@ -49,138 +43,6 @@ export type OffsetTime = Object &
|
|
|
49
43
|
TemporalAdjuster &
|
|
50
44
|
Comparable &
|
|
51
45
|
Serializable & {
|
|
52
|
-
/**
|
|
53
|
-
* Obtains the current time from the system clock in the default time-zone.
|
|
54
|
-
* <p>
|
|
55
|
-
* This will query the {@link Clock#systemDefaultZone() system clock} in the default
|
|
56
|
-
* time-zone to obtain the current time.
|
|
57
|
-
* The offset will be calculated from the time-zone in the clock.
|
|
58
|
-
* <p>
|
|
59
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
60
|
-
* because the clock is hard-coded.
|
|
61
|
-
* @return the current time using the system clock and default time-zone, not null
|
|
62
|
-
*/
|
|
63
|
-
now(): OffsetTime;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Obtains the current time from the system clock in the specified time-zone.
|
|
67
|
-
* <p>
|
|
68
|
-
* This will query the {@link Clock#system(ZoneId) system clock} to obtain the current time.
|
|
69
|
-
* Specifying the time-zone avoids dependence on the default time-zone.
|
|
70
|
-
* The offset will be calculated from the specified time-zone.
|
|
71
|
-
* <p>
|
|
72
|
-
* Using this method will prevent the ability to use an alternate clock for testing
|
|
73
|
-
* because the clock is hard-coded.
|
|
74
|
-
* @param zone the zone ID to use, not null
|
|
75
|
-
* @return the current time using the system clock, not null
|
|
76
|
-
*/
|
|
77
|
-
now(zone: ZoneId): OffsetTime;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Obtains the current time from the specified clock.
|
|
81
|
-
* <p>
|
|
82
|
-
* This will query the specified clock to obtain the current time.
|
|
83
|
-
* The offset will be calculated from the time-zone in the clock.
|
|
84
|
-
* <p>
|
|
85
|
-
* Using this method allows the use of an alternate clock for testing.
|
|
86
|
-
* The alternate clock may be introduced using {@link Clock dependency injection}.
|
|
87
|
-
* @param clock the clock to use, not null
|
|
88
|
-
* @return the current time, not null
|
|
89
|
-
*/
|
|
90
|
-
now(clock: Clock): OffsetTime;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Obtains an instance of {@code OffsetTime} from a local time and an offset.
|
|
94
|
-
* @param time the local time, not null
|
|
95
|
-
* @param offset the zone offset, not null
|
|
96
|
-
* @return the offset time, not null
|
|
97
|
-
*/
|
|
98
|
-
of(time: LocalTime, offset: ZoneOffset): OffsetTime;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Obtains an instance of {@code OffsetTime} from an hour, minute, second and nanosecond.
|
|
102
|
-
* <p>
|
|
103
|
-
* This creates an offset time with the four specified fields.
|
|
104
|
-
* <p>
|
|
105
|
-
* This method exists primarily for writing test cases.
|
|
106
|
-
* Non test-code will typically use other methods to create an offset time.
|
|
107
|
-
* {@code LocalTime} has two additional convenience variants of the
|
|
108
|
-
* equivalent factory method taking fewer arguments.
|
|
109
|
-
* They are not provided here to reduce the footprint of the API.
|
|
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
|
-
* @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
|
|
114
|
-
* @param offset the zone offset, not null
|
|
115
|
-
* @return the offset time, not null
|
|
116
|
-
* @throws DateTimeException if the value of any field is out of range
|
|
117
|
-
*/
|
|
118
|
-
of(
|
|
119
|
-
hour: number,
|
|
120
|
-
minute: number,
|
|
121
|
-
second: number,
|
|
122
|
-
nanoOfSecond: number,
|
|
123
|
-
offset: ZoneOffset
|
|
124
|
-
): OffsetTime;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Obtains an instance of {@code OffsetTime} from an {@code Instant} and zone ID.
|
|
128
|
-
* <p>
|
|
129
|
-
* This creates an offset time with the same instant as that specified.
|
|
130
|
-
* Finding the offset from UTC/Greenwich is simple as there is only one valid
|
|
131
|
-
* offset for each instant.
|
|
132
|
-
* <p>
|
|
133
|
-
* The date component of the instant is dropped during the conversion.
|
|
134
|
-
* This means that the conversion can never fail due to the instant being
|
|
135
|
-
* out of the valid range of dates.
|
|
136
|
-
* @param instant the instant to create the time from, not null
|
|
137
|
-
* @param zone the time-zone, which may be an offset, not null
|
|
138
|
-
* @return the offset time, not null
|
|
139
|
-
*/
|
|
140
|
-
ofInstant(instant: Instant, zone: ZoneId): OffsetTime;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Obtains an instance of {@code OffsetTime} from a temporal object.
|
|
144
|
-
* <p>
|
|
145
|
-
* This obtains an offset time based on the specified temporal.
|
|
146
|
-
* A {@code TemporalAccessor} represents an arbitrary set of date and time information,
|
|
147
|
-
* which this factory converts to an instance of {@code OffsetTime}.
|
|
148
|
-
* <p>
|
|
149
|
-
* The conversion extracts and combines the {@code ZoneOffset} and the
|
|
150
|
-
* {@code LocalTime} from the temporal object.
|
|
151
|
-
* Implementations are permitted to perform optimizations such as accessing
|
|
152
|
-
* those fields that are equivalent to the relevant objects.
|
|
153
|
-
* <p>
|
|
154
|
-
* This method matches the signature of the functional interface {@link TemporalQuery}
|
|
155
|
-
* allowing it to be used as a query via method reference, {@code OffsetTime::from}.
|
|
156
|
-
* @param temporal the temporal object to convert, not null
|
|
157
|
-
* @return the offset time, not null
|
|
158
|
-
* @throws DateTimeException if unable to convert to an {@code OffsetTime}
|
|
159
|
-
*/
|
|
160
|
-
from(temporal: TemporalAccessor): OffsetTime;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Obtains an instance of {@code OffsetTime} from a text string such as {@code 10:15:30+01:00}.
|
|
164
|
-
* <p>
|
|
165
|
-
* The string must represent a valid time and is parsed using
|
|
166
|
-
* {@link java.time.format.DateTimeFormatter#ISO_OFFSET_TIME}.
|
|
167
|
-
* @param text the text to parse such as "10:15:30+01:00", not null
|
|
168
|
-
* @return the parsed local time, not null
|
|
169
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
170
|
-
*/
|
|
171
|
-
parse(text: CharSequence): OffsetTime;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Obtains an instance of {@code OffsetTime} from a text string using a specific formatter.
|
|
175
|
-
* <p>
|
|
176
|
-
* The text is parsed using the formatter, returning a time.
|
|
177
|
-
* @param text the text to parse, not null
|
|
178
|
-
* @param formatter the formatter to use, not null
|
|
179
|
-
* @return the parsed offset time, not null
|
|
180
|
-
* @throws DateTimeParseException if the text cannot be parsed
|
|
181
|
-
*/
|
|
182
|
-
parse(text: CharSequence, formatter: DateTimeFormatter): OffsetTime;
|
|
183
|
-
|
|
184
46
|
/**
|
|
185
47
|
* Checks if the specified field is supported.
|
|
186
48
|
* <p>
|
|
@@ -5,11 +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
|
-
from: function from() {},
|
|
12
|
-
parse: function parse() {},
|
|
13
8
|
isSupported: function isSupported() {},
|
|
14
9
|
range: function range() {},
|
|
15
10
|
get: function get() {},
|