-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDateTimeFormatter.bal
More file actions
873 lines (756 loc) · 38.6 KB
/
Copy pathDateTimeFormatter.bal
File metadata and controls
873 lines (756 loc) · 38.6 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
import ballerina/jballerina.java;
import ballerina/jballerina.java.arrays as jarrays;
# Ballerina class mapping for the Java `java.time.format.DateTimeFormatter` class.
@java:Binding {'class: "java.time.format.DateTimeFormatter"}
public distinct class DateTimeFormatter {
*java:JObject;
*Object;
# The `handle` field that stores the reference to the `java.time.format.DateTimeFormatter` object.
public handle jObj;
# The init function of the Ballerina class mapping the `java.time.format.DateTimeFormatter` Java class.
#
# + obj - The `handle` value containing the Java reference of the object.
public function init(handle obj) {
self.jObj = obj;
}
# The function to retrieve the string representation of the Ballerina class mapping the `java.time.format.DateTimeFormatter` Java class.
#
# + return - The `string` form of the Java object instance.
public function toString() returns string {
return java:toString(self.jObj) ?: "";
}
# Checks if this `DateTimeFormatter` is equal to another object.
#
# + other - The object to compare with this `DateTimeFormatter`, not null
# + return - `true` if the given object is equal to this formatter, `false` otherwise
public function isEquals(Object other) returns boolean {
return java_time_format_DateTimeFormatter_equals(self.jObj, other.jObj);
}
# The function that maps to the `format` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `TemporalAccessor` value required to map with the Java method parameter.
# + return - The `string` value returning from the Java mapping.
function format(TemporalAccessor arg0) returns string {
return java:toString(java_time_format_DateTimeFormatter_format(self.jObj, arg0.jObj)) ?: "";
}
# The function that maps to the `formatTo` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `TemporalAccessor` value required to map with the Java method parameter.
# + arg1 - The `Appendable` value required to map with the Java method parameter.
function formatTo(TemporalAccessor arg0, Appendable arg1) {
java_time_format_DateTimeFormatter_formatTo(self.jObj, arg0.jObj, arg1.jObj);
}
# The function that maps to the `getChronology` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `Chronology` value returning from the Java mapping.
function getChronology() returns Chronology {
handle externalObj = java_time_format_DateTimeFormatter_getChronology(self.jObj);
Chronology newObj = new (externalObj);
return newObj;
}
# The function that maps to the `getClass` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `Class` value returning from the Java mapping.
public function getClass() returns Class {
handle externalObj = java_time_format_DateTimeFormatter_getClass(self.jObj);
Class newObj = new (externalObj);
return newObj;
}
# The function that maps to the `getDecimalStyle` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `DecimalStyle` value returning from the Java mapping.
function getDecimalStyle() returns DecimalStyle {
handle externalObj = java_time_format_DateTimeFormatter_getDecimalStyle(self.jObj);
DecimalStyle newObj = new (externalObj);
return newObj;
}
# The function that maps to the `getLocale` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `Locale` value returning from the Java mapping.
function getLocale() returns Locale {
handle externalObj = java_time_format_DateTimeFormatter_getLocale(self.jObj);
Locale newObj = new (externalObj);
return newObj;
}
# The function that maps to the `getResolverFields` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `Set` value returning from the Java mapping.
function getResolverFields() returns Set {
handle externalObj = java_time_format_DateTimeFormatter_getResolverFields(self.jObj);
Set newObj = new (externalObj);
return newObj;
}
# The function that maps to the `getResolverStyle` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `ResolverStyle` value returning from the Java mapping.
function getResolverStyle() returns ResolverStyle {
handle externalObj = java_time_format_DateTimeFormatter_getResolverStyle(self.jObj);
ResolverStyle newObj = new (externalObj);
return newObj;
}
# The function that maps to the `getZone` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `ZoneId` value returning from the Java mapping.
function getZone() returns ZoneId {
handle externalObj = java_time_format_DateTimeFormatter_getZone(self.jObj);
ZoneId newObj = new (externalObj);
return newObj;
}
# The function that maps to the `hashCode` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `int` value returning from the Java mapping.
public function hashCode() returns int {
return java_time_format_DateTimeFormatter_hashCode(self.jObj);
}
# The function that maps to the `localizedBy` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `Locale` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function localizedBy(Locale arg0) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_localizedBy(self.jObj, arg0.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `notify` method of `java.time.format.DateTimeFormatter`.
public function notify() {
java_time_format_DateTimeFormatter_notify(self.jObj);
}
# The function that maps to the `notifyAll` method of `java.time.format.DateTimeFormatter`.
public function notifyAll() {
java_time_format_DateTimeFormatter_notifyAll(self.jObj);
}
# The function that maps to the `parse` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `CharSequence` value required to map with the Java method parameter.
# + return - The `TemporalAccessor` value returning from the Java mapping.
function parse(string arg0) returns TemporalAccessor {
handle externalObj = java_time_format_DateTimeFormatter_parse(self.jObj, java:fromString(arg0));
TemporalAccessor newObj = new (externalObj);
return newObj;
}
# The function that maps to the `parse` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `CharSequence` value required to map with the Java method parameter.
# + arg1 - The `ParsePosition` value required to map with the Java method parameter.
# + return - The `TemporalAccessor` value returning from the Java mapping.
function parse2(string arg0, ParsePosition arg1) returns TemporalAccessor {
handle externalObj = java_time_format_DateTimeFormatter_parse2(self.jObj, java:fromString(arg0), arg1.jObj);
TemporalAccessor newObj = new (externalObj);
return newObj;
}
# The function that maps to the `parse` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `CharSequence` value required to map with the Java method parameter.
# + arg1 - The `TemporalQuery` value required to map with the Java method parameter.
# + return - The `Object` value returning from the Java mapping.
function parse3(string arg0, TemporalQuery arg1) returns Object {
handle externalObj = java_time_format_DateTimeFormatter_parse3(self.jObj, java:fromString(arg0), arg1.jObj);
Object newObj = new (externalObj);
return newObj;
}
# The function that maps to the `parseBest` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `CharSequence` value required to map with the Java method parameter.
# + arg1 - The `TemporalQuery[]` value required to map with the Java method parameter.
# + return - The `TemporalAccessor` value returning from the Java mapping.
function parseBest(string arg0, TemporalQuery[] arg1) returns TemporalAccessor|error {
handle externalObj = java_time_format_DateTimeFormatter_parseBest(self.jObj, java:fromString(arg0), check jarrays:toHandle(arg1, "java.time.temporal.TemporalQuery"));
TemporalAccessor newObj = new (externalObj);
return newObj;
}
# The function that maps to the `parseUnresolved` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `CharSequence` value required to map with the Java method parameter.
# + arg1 - The `ParsePosition` value required to map with the Java method parameter.
# + return - The `TemporalAccessor` value returning from the Java mapping.
function parseUnresolved(string arg0, ParsePosition arg1) returns TemporalAccessor {
handle externalObj = java_time_format_DateTimeFormatter_parseUnresolved(self.jObj, java:fromString(arg0), arg1.jObj);
TemporalAccessor newObj = new (externalObj);
return newObj;
}
# The function that maps to the `toFormat` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `Format` value returning from the Java mapping.
function toFormat() returns Format {
handle externalObj = java_time_format_DateTimeFormatter_toFormat(self.jObj);
Format newObj = new (externalObj);
return newObj;
}
# The function that maps to the `toFormat` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `TemporalQuery` value required to map with the Java method parameter.
# + return - The `Format` value returning from the Java mapping.
function toFormat2(TemporalQuery arg0) returns Format {
handle externalObj = java_time_format_DateTimeFormatter_toFormat2(self.jObj, arg0.jObj);
Format newObj = new (externalObj);
return newObj;
}
# The function that maps to the `wait` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `InterruptedException` value returning from the Java mapping.
public function doWait() returns InterruptedException? {
error|() externalObj = java_time_format_DateTimeFormatter_wait(self.jObj);
if (externalObj is error) {
InterruptedException e = error InterruptedException(INTERRUPTEDEXCEPTION, externalObj, message = externalObj.message());
return e;
}
}
# The function that maps to the `wait` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `int` value required to map with the Java method parameter.
# + return - The `InterruptedException` value returning from the Java mapping.
public function waitWithTimeout(int arg0) returns InterruptedException? {
error|() externalObj = java_time_format_DateTimeFormatter_wait2(self.jObj, arg0);
if (externalObj is error) {
InterruptedException e = error InterruptedException(INTERRUPTEDEXCEPTION, externalObj, message = externalObj.message());
return e;
}
}
# Causes the current thread to wait until it is notified or the specified
# timeout elapses. Maps to the `wait(long, int)` method of `java.lang.Object`,
# inherited by `DateTimeFormatter`.
#
# + timeoutMillis - The maximum time to wait, in milliseconds
# + nanos - Additional time, in nanoseconds, in the range 0-999999
# + return - An `InterruptedException` if the current thread is interrupted
# while waiting, otherwise `()`
public function waitWithTimeoutAndNanos(int timeoutMillis, int nanos) returns InterruptedException? {
error|() externalObj = java_time_format_DateTimeFormatter_wait3(self.jObj, timeoutMillis, nanos);
if (externalObj is error) {
InterruptedException e = error InterruptedException(INTERRUPTEDEXCEPTION, externalObj, message = externalObj.message());
return e;
}
}
# The function that maps to the `withChronology` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `Chronology` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function withChronology(Chronology arg0) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_withChronology(self.jObj, arg0.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `withDecimalStyle` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `DecimalStyle` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function withDecimalStyle(DecimalStyle arg0) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_withDecimalStyle(self.jObj, arg0.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `withLocale` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `Locale` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function withLocale(Locale arg0) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_withLocale(self.jObj, arg0.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `withResolverFields` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `Set` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function withResolverFields(Set arg0) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_withResolverFields(self.jObj, arg0.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `withResolverFields` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `TemporalField[]` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function withResolverFields2(TemporalField[] arg0) returns DateTimeFormatter|error {
handle externalObj = java_time_format_DateTimeFormatter_withResolverFields2(self.jObj, check jarrays:toHandle(arg0, "java.time.temporal.TemporalField"));
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `withResolverStyle` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `ResolverStyle` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function withResolverStyle(ResolverStyle arg0) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_withResolverStyle(self.jObj, arg0.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Returns a copy of this formatter with a new override zone. The override zone is used to
# convert instants to a time-zone-aware representation before formatting, when the object
# being formatted does not itself contain zone information (or when overriding the zone it
# does contain).
#
# + zone - The zone to use, not null
# + return - A copy of this formatter with the specified override zone, not null
public function withZone(ZoneId zone) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_withZone(self.jObj, zone.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
}
# Creates a localized date formatter using the specified style, such as "July 15, 2026" for
# `FormatStyle.LONG`. Uses the JVM's default locale.
#
# + dateStyle - The formatting style to use for the date, not null
# + return - The constructed DateTimeFormatter instance, not null
public function ofLocalizedDate(FormatStyle dateStyle) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_ofLocalizedDate(dateStyle.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Creates a localized date-time formatter using the same style for both the date and time
# parts, such as "July 15, 2026 2:28:19 PM" for `FormatStyle.LONG`. Uses the JVM's default locale.
#
# + dateTimeStyle - The formatting style to use for both the date and time parts, not null
# + return - The constructed DateTimeFormatter instance, not null
public function ofLocalizedDateTime(FormatStyle dateTimeStyle) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_ofLocalizedDateTime(dateTimeStyle.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Creates a localized date-time formatter using independent styles for the date and time parts,
# such as "July 15, 2026, 2:28 PM" when combining `FormatStyle.LONG` (date) with
# `FormatStyle.SHORT` (time). Uses the JVM's default locale.
#
# + dateStyle - The formatting style to use for the date part, not null
# + timeStyle - The formatting style to use for the time part, not null
# + return - The constructed DateTimeFormatter instance, not null
public function ofLocalizedDateTimeWithStyles(FormatStyle dateStyle, FormatStyle timeStyle) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_ofLocalizedDateTime2(dateStyle.jObj, timeStyle.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Creates a formatter using the specified pattern template, such as "dd.MM.yyyy".
#
# + text - The pattern template to use, such as "dd.MM.yyyy".
# + return - The constructed DateTimeFormatter instance.
public function ofLocalizedPattern(string text) returns DateTimeFormatter|error {
handle externalObj = check trap java_time_format_DateTimeFormatter_ofLocalizedPattern(java:fromString(text));
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Creates a localized time formatter using the specified style, such as "2:28:19 PM" for
# `FormatStyle.LONG`. Uses the JVM's default locale.
#
# + timeStyle - The formatting style to use for the time, not null
# + return - The constructed DateTimeFormatter instance, not null
public function ofLocalizedTime(FormatStyle timeStyle) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_ofLocalizedTime(timeStyle.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Creates a formatter using the specified pattern, such as "yyyy-MM-dd HH:mm:ss", "yyyy.MM.dd 'at' HH:mm:ss".
#
# + pattern - The pattern to use, such as "yyyy-MM-dd HH:mm:ss".
# + return - The constructed DateTimeFormatter instance, or an error if the pattern is invalid.
public function ofPattern(string pattern) returns DateTimeFormatter|error {
handle externalObj = check trap java_time_format_DateTimeFormatter_ofPattern(java:fromString(pattern));
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `ofPattern` method of `java.time.format.DateTimeFormatter`.
#
# + arg0 - The `string` value required to map with the Java method parameter.
# + arg1 - The `Locale` value required to map with the Java method parameter.
# + return - The `DateTimeFormatter` value returning from the Java mapping.
function DateTimeFormatter_ofPattern2(string arg0, Locale arg1) returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_ofPattern2(java:fromString(arg0), arg1.jObj);
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# The function that maps to the `parsedExcessDays` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `TemporalQuery` value returning from the Java mapping.
function DateTimeFormatter_parsedExcessDays() returns TemporalQuery {
handle externalObj = java_time_format_DateTimeFormatter_parsedExcessDays();
TemporalQuery newObj = new (externalObj);
return newObj;
}
# The function that maps to the `parsedLeapSecond` method of `java.time.format.DateTimeFormatter`.
#
# + return - The `TemporalQuery` value returning from the Java mapping.
function DateTimeFormatter_parsedLeapSecond() returns TemporalQuery {
handle externalObj = java_time_format_DateTimeFormatter_parsedLeapSecond();
TemporalQuery newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_LOCAL_DATE formatter that formats or parses a date without an offset, such as "2026-07-22".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoLocalDateFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_LOCAL_DATE();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_OFFSET_DATE formatter that formats or parses a date with an offset, such as "2026-07-22+03:00".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoOffsetDateFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_OFFSET_DATE();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_DATE formatter that formats or parses a date with or without an offset, such as "2026-07-22" or "2026-07-22+03:00".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoDateFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_DATE();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_LOCAL_TIME formatter that formats or parses a time without an offset, such as "14:28:19".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoLocalTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_LOCAL_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_OFFSET_TIME formatter that formats or parses a time with an offset, such as "14:28:19+03:00".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoOffsetTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_OFFSET_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_TIME formatter that formats or parses a time with or without an offset, such as "14:28:19" or "14:28:19+03:00".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_LOCAL_DATE_TIME formatter that formats or parses a date-time without an offset, such as "2026-07-22T14:28:19".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoLocalDateTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_LOCAL_DATE_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_OFFSET_DATE_TIME formatter that formats or parses a date-time with an offset, such as "2026-07-22T14:28:19+03:00".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoOffsetDateTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_OFFSET_DATE_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_ZONED_DATE_TIME formatter that formats or parses a date-time with a zone ID, such as "2026-07-22T14:28:19+03:00[Europe/Kyiv]".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoZonedDateTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_ZONED_DATE_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_DATE_TIME formatter that formats or parses a date-time with a zone, such as "2026-07-22T14:28:19+03:00[Europe/Kyiv]".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoDateTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_DATE_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_ORDINAL_DATE formatter that formats or parses the ordinal date, such as "2026-203".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoOrdinalDateFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_ORDINAL_DATE();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_WEEK_DATE formatter that formats or parses the week-based date, such as "2026-W30-3".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoWeekDateFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_WEEK_DATE();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the ISO_INSTANT formatter that formats or parses an instant in UTC, such as "2026-07-22T11:28:19Z".
#
# + return - The constructed DateTimeFormatter instance.
public function getIsoInstantFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getISO_INSTANT();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the BASIC_ISO_DATE formatter that formats or parses a basic date without separators, such as "20260722".
#
# + return - The constructed DateTimeFormatter instance.
public function getBasicIsoDateFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getBASIC_ISO_DATE();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
# Obtains the RFC_1123_DATE_TIME formatter that formats or parses a date-time according to RFC 1123, such as "Wed, 22 Jul 2026 14:28:19 +0300".
#
# + return - The constructed DateTimeFormatter instance.
public function getRfc1123DateTimeFormatter() returns DateTimeFormatter {
handle externalObj = java_time_format_DateTimeFormatter_getRFC_1123_DATE_TIME();
DateTimeFormatter newObj = new (externalObj);
return newObj;
}
function java_time_format_DateTimeFormatter_equals(handle receiver, handle arg0) returns boolean = @java:Method {
name: "equals",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.Object"]
} external;
function java_time_format_DateTimeFormatter_format(handle receiver, handle arg0) returns handle = @java:Method {
name: "format",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.temporal.TemporalAccessor"]
} external;
function java_time_format_DateTimeFormatter_formatTo(handle receiver, handle arg0, handle arg1) = @java:Method {
name: "formatTo",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.temporal.TemporalAccessor", "java.lang.Appendable"]
} external;
function java_time_format_DateTimeFormatter_getChronology(handle receiver) returns handle = @java:Method {
name: "getChronology",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_getClass(handle receiver) returns handle = @java:Method {
name: "getClass",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_getDecimalStyle(handle receiver) returns handle = @java:Method {
name: "getDecimalStyle",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_getLocale(handle receiver) returns handle = @java:Method {
name: "getLocale",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_getResolverFields(handle receiver) returns handle = @java:Method {
name: "getResolverFields",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_getResolverStyle(handle receiver) returns handle = @java:Method {
name: "getResolverStyle",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_getZone(handle receiver) returns handle = @java:Method {
name: "getZone",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_hashCode(handle receiver) returns int = @java:Method {
name: "hashCode",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_localizedBy(handle receiver, handle arg0) returns handle = @java:Method {
name: "localizedBy",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.util.Locale"]
} external;
function java_time_format_DateTimeFormatter_notify(handle receiver) = @java:Method {
name: "notify",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_notifyAll(handle receiver) = @java:Method {
name: "notifyAll",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_ofLocalizedDate(handle arg0) returns handle = @java:Method {
name: "ofLocalizedDate",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.format.FormatStyle"]
} external;
function java_time_format_DateTimeFormatter_ofLocalizedDateTime(handle arg0) returns handle = @java:Method {
name: "ofLocalizedDateTime",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.format.FormatStyle"]
} external;
function java_time_format_DateTimeFormatter_ofLocalizedDateTime2(handle arg0, handle arg1) returns handle = @java:Method {
name: "ofLocalizedDateTime",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.format.FormatStyle", "java.time.format.FormatStyle"]
} external;
function java_time_format_DateTimeFormatter_ofLocalizedPattern(handle arg0) returns handle|error = @java:Method {
name: "ofLocalizedPattern",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.String"]
} external;
function java_time_format_DateTimeFormatter_ofLocalizedTime(handle arg0) returns handle = @java:Method {
name: "ofLocalizedTime",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.format.FormatStyle"]
} external;
function java_time_format_DateTimeFormatter_ofPattern(handle arg0) returns handle|error = @java:Method {
name: "ofPattern",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.String"]
} external;
function java_time_format_DateTimeFormatter_ofPattern2(handle arg0, handle arg1) returns handle = @java:Method {
name: "ofPattern",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.String", "java.util.Locale"]
} external;
function java_time_format_DateTimeFormatter_parse(handle receiver, handle arg0) returns handle = @java:Method {
name: "parse",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.CharSequence"]
} external;
function java_time_format_DateTimeFormatter_parse2(handle receiver, handle arg0, handle arg1) returns handle = @java:Method {
name: "parse",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.CharSequence", "java.text.ParsePosition"]
} external;
function java_time_format_DateTimeFormatter_parse3(handle receiver, handle arg0, handle arg1) returns handle = @java:Method {
name: "parse",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.CharSequence", "java.time.temporal.TemporalQuery"]
} external;
function java_time_format_DateTimeFormatter_parseBest(handle receiver, handle arg0, handle arg1) returns handle = @java:Method {
name: "parseBest",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.CharSequence", "[Ljava.time.temporal.TemporalQuery;"]
} external;
function java_time_format_DateTimeFormatter_parseUnresolved(handle receiver, handle arg0, handle arg1) returns handle = @java:Method {
name: "parseUnresolved",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.lang.CharSequence", "java.text.ParsePosition"]
} external;
function java_time_format_DateTimeFormatter_parsedExcessDays() returns handle = @java:Method {
name: "parsedExcessDays",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_parsedLeapSecond() returns handle = @java:Method {
name: "parsedLeapSecond",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_toFormat(handle receiver) returns handle = @java:Method {
name: "toFormat",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_toFormat2(handle receiver, handle arg0) returns handle = @java:Method {
name: "toFormat",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.temporal.TemporalQuery"]
} external;
function java_time_format_DateTimeFormatter_wait(handle receiver) returns error? = @java:Method {
name: "wait",
'class: "java.time.format.DateTimeFormatter",
paramTypes: []
} external;
function java_time_format_DateTimeFormatter_wait2(handle receiver, int arg0) returns error? = @java:Method {
name: "wait",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["long"]
} external;
function java_time_format_DateTimeFormatter_wait3(handle receiver, int arg0, int arg1) returns error? = @java:Method {
name: "wait",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["long", "int"]
} external;
function java_time_format_DateTimeFormatter_withChronology(handle receiver, handle arg0) returns handle = @java:Method {
name: "withChronology",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.chrono.Chronology"]
} external;
function java_time_format_DateTimeFormatter_withDecimalStyle(handle receiver, handle arg0) returns handle = @java:Method {
name: "withDecimalStyle",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.format.DecimalStyle"]
} external;
function java_time_format_DateTimeFormatter_withLocale(handle receiver, handle arg0) returns handle = @java:Method {
name: "withLocale",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.util.Locale"]
} external;
function java_time_format_DateTimeFormatter_withResolverFields(handle receiver, handle arg0) returns handle = @java:Method {
name: "withResolverFields",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.util.Set"]
} external;
function java_time_format_DateTimeFormatter_withResolverFields2(handle receiver, handle arg0) returns handle = @java:Method {
name: "withResolverFields",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["[Ljava.time.temporal.TemporalField;"]
} external;
function java_time_format_DateTimeFormatter_withResolverStyle(handle receiver, handle arg0) returns handle = @java:Method {
name: "withResolverStyle",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.format.ResolverStyle"]
} external;
function java_time_format_DateTimeFormatter_withZone(handle receiver, handle arg0) returns handle = @java:Method {
name: "withZone",
'class: "java.time.format.DateTimeFormatter",
paramTypes: ["java.time.ZoneId"]
} external;
function java_time_format_DateTimeFormatter_getISO_LOCAL_DATE() returns handle = @java:FieldGet {
name: "ISO_LOCAL_DATE",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_OFFSET_DATE() returns handle = @java:FieldGet {
name: "ISO_OFFSET_DATE",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_DATE() returns handle = @java:FieldGet {
name: "ISO_DATE",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_LOCAL_TIME() returns handle = @java:FieldGet {
name: "ISO_LOCAL_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_OFFSET_TIME() returns handle = @java:FieldGet {
name: "ISO_OFFSET_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_TIME() returns handle = @java:FieldGet {
name: "ISO_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_LOCAL_DATE_TIME() returns handle = @java:FieldGet {
name: "ISO_LOCAL_DATE_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_OFFSET_DATE_TIME() returns handle = @java:FieldGet {
name: "ISO_OFFSET_DATE_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_ZONED_DATE_TIME() returns handle = @java:FieldGet {
name: "ISO_ZONED_DATE_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_DATE_TIME() returns handle = @java:FieldGet {
name: "ISO_DATE_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_ORDINAL_DATE() returns handle = @java:FieldGet {
name: "ISO_ORDINAL_DATE",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_WEEK_DATE() returns handle = @java:FieldGet {
name: "ISO_WEEK_DATE",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getISO_INSTANT() returns handle = @java:FieldGet {
name: "ISO_INSTANT",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getBASIC_ISO_DATE() returns handle = @java:FieldGet {
name: "BASIC_ISO_DATE",
'class: "java.time.format.DateTimeFormatter"
} external;
function java_time_format_DateTimeFormatter_getRFC_1123_DATE_TIME() returns handle = @java:FieldGet {
name: "RFC_1123_DATE_TIME",
'class: "java.time.format.DateTimeFormatter"
} external;