@sswroom/sswr 1.5.0 → 1.5.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/Changelog +37 -0
- package/cesium.d.ts +9 -2
- package/cesium.js +263 -44
- package/data.d.ts +6 -0
- package/data.js +216 -204
- package/geometry.d.ts +5 -0
- package/geometry.js +62 -50
- package/hkoapi.js +10 -10
- package/kml.d.ts +4 -1
- package/kml.js +53 -24
- package/leaflet.js +154 -34
- package/map.js +22 -22
- package/math.js +134 -134
- package/net.d.ts +2 -0
- package/net.js +76 -0
- package/olayer2.d.ts +11 -0
- package/olayer2.js +328 -76
- package/osm.js +21 -22
- package/package.json +1 -1
- package/parser.js +339 -93
- package/text.d.ts +127 -1
- package/text.js +1142 -21
- package/web.d.ts +9 -0
- package/web.js +222 -58
package/data.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as text from "./text.js";
|
|
2
2
|
|
|
3
3
|
export function isArray(o)
|
|
4
4
|
{
|
|
@@ -16,7 +16,7 @@ export function toObjectString(o, lev)
|
|
|
16
16
|
{
|
|
17
17
|
return "";
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
let nextLev;
|
|
20
20
|
if (lev)
|
|
21
21
|
{
|
|
22
22
|
nextLev = lev + 1;
|
|
@@ -25,16 +25,16 @@ export function toObjectString(o, lev)
|
|
|
25
25
|
{
|
|
26
26
|
nextLev = 1;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (
|
|
28
|
+
let t = typeof o;
|
|
29
|
+
let out;
|
|
30
|
+
let name;
|
|
31
|
+
if (isArray(o))
|
|
32
32
|
{
|
|
33
33
|
out = new Array();
|
|
34
34
|
out.push("[");
|
|
35
35
|
for (name in o)
|
|
36
36
|
{
|
|
37
|
-
out.push(
|
|
37
|
+
out.push(toObjectString(o[name], nextLev));
|
|
38
38
|
out.push(",");
|
|
39
39
|
}
|
|
40
40
|
out.pop();
|
|
@@ -49,7 +49,7 @@ export function toObjectString(o, lev)
|
|
|
49
49
|
{
|
|
50
50
|
out.push(text.toJSText(name));
|
|
51
51
|
out.push(":");
|
|
52
|
-
out.push(
|
|
52
|
+
out.push(toObjectString(o[name], nextLev));
|
|
53
53
|
out.push(",");
|
|
54
54
|
}
|
|
55
55
|
out.pop();
|
|
@@ -64,6 +64,10 @@ export function toObjectString(o, lev)
|
|
|
64
64
|
{
|
|
65
65
|
return text.toJSText(o);
|
|
66
66
|
}
|
|
67
|
+
else if (t == "number")
|
|
68
|
+
{
|
|
69
|
+
return o.toString();
|
|
70
|
+
}
|
|
67
71
|
else
|
|
68
72
|
{
|
|
69
73
|
console.log(t);
|
|
@@ -84,7 +88,7 @@ export function compare(a, b)
|
|
|
84
88
|
return -1;
|
|
85
89
|
if (b == null)
|
|
86
90
|
return 1;
|
|
87
|
-
|
|
91
|
+
let ta = typeof a;
|
|
88
92
|
if (ta == "string")
|
|
89
93
|
{
|
|
90
94
|
return a.localeCompare(b);
|
|
@@ -114,20 +118,20 @@ export function compare(a, b)
|
|
|
114
118
|
|
|
115
119
|
export function sort(arr, compareFunc, firstIndex, lastIndex)
|
|
116
120
|
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
121
|
+
let levi = new Array();
|
|
122
|
+
let desni = new Array();
|
|
123
|
+
|
|
124
|
+
let index = 0;
|
|
125
|
+
let i = 0;
|
|
126
|
+
let j = 0;
|
|
127
|
+
let left = 0;
|
|
128
|
+
let right = 0;
|
|
129
|
+
let meja = 0;
|
|
130
|
+
let left1 = 0;
|
|
131
|
+
let right1 = 0;
|
|
132
|
+
let temp1 = 0;
|
|
133
|
+
let temp2 = 0;
|
|
134
|
+
let temp = 0;
|
|
131
135
|
if (compareFunc == null)
|
|
132
136
|
{
|
|
133
137
|
compareFunc = compare;
|
|
@@ -201,35 +205,32 @@ export function sort(arr, compareFunc, firstIndex, lastIndex)
|
|
|
201
205
|
j++;
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
|
-
else
|
|
208
|
+
else if ( i != 0 )
|
|
205
209
|
{
|
|
206
|
-
|
|
210
|
+
temp1 = arr[left];
|
|
211
|
+
i = left + 1;
|
|
212
|
+
while (i <= right)
|
|
207
213
|
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
while (i <= right)
|
|
214
|
+
temp2 = arr[i];
|
|
215
|
+
if ( compareFunc(temp1, temp2) > 0)
|
|
211
216
|
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
arr[i] = temp1;
|
|
216
|
-
j = i - 1;
|
|
217
|
-
while (j > left)
|
|
218
|
-
{
|
|
219
|
-
temp = arr[j-1];
|
|
220
|
-
if ( compareFunc(temp, temp2) > 0)
|
|
221
|
-
arr[j--] = temp;
|
|
222
|
-
else
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
arr[j] = temp2;
|
|
226
|
-
}
|
|
227
|
-
else
|
|
217
|
+
arr[i] = temp1;
|
|
218
|
+
j = i - 1;
|
|
219
|
+
while (j > left)
|
|
228
220
|
{
|
|
229
|
-
|
|
221
|
+
temp = arr[j-1];
|
|
222
|
+
if ( compareFunc(temp, temp2) > 0)
|
|
223
|
+
arr[j--] = temp;
|
|
224
|
+
else
|
|
225
|
+
break;
|
|
230
226
|
}
|
|
231
|
-
|
|
227
|
+
arr[j] = temp2;
|
|
228
|
+
}
|
|
229
|
+
else
|
|
230
|
+
{
|
|
231
|
+
temp1 = temp2;
|
|
232
232
|
}
|
|
233
|
+
i++;
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
index--;
|
|
@@ -240,7 +241,7 @@ export function mergeOptions(options, defOptions)
|
|
|
240
241
|
{
|
|
241
242
|
if (options == null)
|
|
242
243
|
options = {};
|
|
243
|
-
|
|
244
|
+
let i;
|
|
244
245
|
for (i in defOptions)
|
|
245
246
|
{
|
|
246
247
|
if (options[i] == null)
|
|
@@ -249,6 +250,36 @@ export function mergeOptions(options, defOptions)
|
|
|
249
250
|
return options;
|
|
250
251
|
}
|
|
251
252
|
|
|
253
|
+
export function readUInt16(arr, index)
|
|
254
|
+
{
|
|
255
|
+
return arr[index] | (arr[index + 1] << 8);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function readMUInt16(arr, index)
|
|
259
|
+
{
|
|
260
|
+
return arr[index + 1] | (arr[index + 0] << 8);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export function readUInt24(arr, index)
|
|
264
|
+
{
|
|
265
|
+
return arr[index] | (arr[index + 1] << 8) | (arr[index + 2] << 16);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export function readMUInt24(arr, index)
|
|
269
|
+
{
|
|
270
|
+
return arr[index + 2] | (arr[index + 1] << 8) | (arr[index + 0] << 16);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function readUInt32(arr, index)
|
|
274
|
+
{
|
|
275
|
+
return arr[index] | (arr[index + 1] << 8) | (arr[index + 2] << 16) | (arr[index + 3] << 24);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export function readMUInt32(arr, index)
|
|
279
|
+
{
|
|
280
|
+
return arr[index + 3] | (arr[index + 2] << 8) | (arr[index + 1] << 16) | (arr[index + 0] << 24);
|
|
281
|
+
}
|
|
282
|
+
|
|
252
283
|
export class DateValue
|
|
253
284
|
{
|
|
254
285
|
constructor()
|
|
@@ -278,9 +309,9 @@ export class DateTimeUtil
|
|
|
278
309
|
static monthString = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
279
310
|
static dateValueSetDate(t, dateStrs)
|
|
280
311
|
{
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
312
|
+
let vals0 = dateStrs[0] - 0;
|
|
313
|
+
let vals1 = dateStrs[1] - 0;
|
|
314
|
+
let vals2 = dateStrs[2] - 0;
|
|
284
315
|
if (vals0 > 100)
|
|
285
316
|
{
|
|
286
317
|
t.year = vals0;
|
|
@@ -301,26 +332,23 @@ export class DateTimeUtil
|
|
|
301
332
|
t.day = vals1;
|
|
302
333
|
}
|
|
303
334
|
}
|
|
335
|
+
else if (vals1 > 12)
|
|
336
|
+
{
|
|
337
|
+
t.year = ((Math.floor(t.year / 100) * 100) + vals2);
|
|
338
|
+
t.month = vals0;
|
|
339
|
+
t.day = vals1;
|
|
340
|
+
}
|
|
304
341
|
else
|
|
305
342
|
{
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
t.month = vals0;
|
|
310
|
-
t.day = vals1;
|
|
311
|
-
}
|
|
312
|
-
else
|
|
313
|
-
{
|
|
314
|
-
t.year = ((Math.floor(t.year / 100) * 100) + vals0);
|
|
315
|
-
t.month = vals1;
|
|
316
|
-
t.day = vals2;
|
|
317
|
-
}
|
|
343
|
+
t.year = ((Math.floor(t.year / 100) * 100) + vals0);
|
|
344
|
+
t.month = vals1;
|
|
345
|
+
t.day = vals2;
|
|
318
346
|
}
|
|
319
347
|
}
|
|
320
348
|
|
|
321
349
|
static timeValueSetTime(t, timeStrs)
|
|
322
350
|
{
|
|
323
|
-
|
|
351
|
+
let strs;
|
|
324
352
|
|
|
325
353
|
t.hour = timeStrs[0] - 0;
|
|
326
354
|
t.minute = timeStrs[1] - 0;
|
|
@@ -371,15 +399,15 @@ export class DateTimeUtil
|
|
|
371
399
|
|
|
372
400
|
static date2TotalDays(year, month, day)
|
|
373
401
|
{
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
402
|
+
let totalDays;
|
|
403
|
+
let leapDays;
|
|
404
|
+
let yearDiff;
|
|
405
|
+
let yearDiff100;
|
|
406
|
+
let yearDiff400;
|
|
379
407
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
408
|
+
let currYear = year;
|
|
409
|
+
let currMonth = month;
|
|
410
|
+
let currDay = day;
|
|
383
411
|
|
|
384
412
|
if (currYear <= 2000)
|
|
385
413
|
{
|
|
@@ -482,52 +510,49 @@ export class DateTimeUtil
|
|
|
482
510
|
}
|
|
483
511
|
}
|
|
484
512
|
}
|
|
485
|
-
else
|
|
513
|
+
else if (totalDays < 10957)
|
|
486
514
|
{
|
|
487
|
-
|
|
515
|
+
t.year = 1970;
|
|
516
|
+
while (true)
|
|
488
517
|
{
|
|
489
|
-
t.year
|
|
490
|
-
while (true)
|
|
518
|
+
if (DateTimeUtil.isYearLeap(t.year))
|
|
491
519
|
{
|
|
492
|
-
if (
|
|
520
|
+
if (totalDays < 366)
|
|
493
521
|
{
|
|
494
|
-
|
|
495
|
-
{
|
|
496
|
-
break;
|
|
497
|
-
}
|
|
498
|
-
else
|
|
499
|
-
{
|
|
500
|
-
t.year++;
|
|
501
|
-
totalDays -= 366;
|
|
502
|
-
}
|
|
522
|
+
break;
|
|
503
523
|
}
|
|
504
524
|
else
|
|
505
525
|
{
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
break;
|
|
509
|
-
}
|
|
510
|
-
else
|
|
511
|
-
{
|
|
512
|
-
t.year++;
|
|
513
|
-
totalDays -= 365;
|
|
514
|
-
}
|
|
526
|
+
t.year++;
|
|
527
|
+
totalDays -= 366;
|
|
515
528
|
}
|
|
516
529
|
}
|
|
517
|
-
|
|
518
|
-
else
|
|
519
|
-
{
|
|
520
|
-
totalDays -= 10957;
|
|
521
|
-
t.year = (2000 + (Math.floor(totalDays / 1461) * 4));
|
|
522
|
-
totalDays = totalDays % 1461;
|
|
523
|
-
if (totalDays >= 366)
|
|
530
|
+
else
|
|
524
531
|
{
|
|
525
|
-
totalDays
|
|
526
|
-
|
|
527
|
-
|
|
532
|
+
if (totalDays < 365)
|
|
533
|
+
{
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
else
|
|
537
|
+
{
|
|
538
|
+
t.year++;
|
|
539
|
+
totalDays -= 365;
|
|
540
|
+
}
|
|
528
541
|
}
|
|
529
542
|
}
|
|
530
543
|
}
|
|
544
|
+
else
|
|
545
|
+
{
|
|
546
|
+
totalDays -= 10957;
|
|
547
|
+
t.year = (2000 + (Math.floor(totalDays / 1461) * 4));
|
|
548
|
+
totalDays = totalDays % 1461;
|
|
549
|
+
if (totalDays >= 366)
|
|
550
|
+
{
|
|
551
|
+
totalDays--;
|
|
552
|
+
t.year = (t.year + Math.floor(totalDays / 365));
|
|
553
|
+
totalDays = totalDays % 365;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
531
556
|
|
|
532
557
|
if (DateTimeUtil.isYearLeap(t.year))
|
|
533
558
|
{
|
|
@@ -547,7 +572,6 @@ export class DateTimeUtil
|
|
|
547
572
|
}
|
|
548
573
|
}
|
|
549
574
|
else
|
|
550
|
-
{
|
|
551
575
|
if (totalDays < 91)
|
|
552
576
|
{
|
|
553
577
|
t.month = 3;
|
|
@@ -558,7 +582,6 @@ export class DateTimeUtil
|
|
|
558
582
|
t.month = 4;
|
|
559
583
|
t.day = (totalDays - 91 + 1);
|
|
560
584
|
}
|
|
561
|
-
}
|
|
562
585
|
}
|
|
563
586
|
else
|
|
564
587
|
{
|
|
@@ -578,7 +601,6 @@ export class DateTimeUtil
|
|
|
578
601
|
}
|
|
579
602
|
}
|
|
580
603
|
else
|
|
581
|
-
{
|
|
582
604
|
if (totalDays < 213)
|
|
583
605
|
{
|
|
584
606
|
t.month = 7;
|
|
@@ -589,7 +611,6 @@ export class DateTimeUtil
|
|
|
589
611
|
t.month = 8;
|
|
590
612
|
t.day = (totalDays - 213 + 1);
|
|
591
613
|
}
|
|
592
|
-
}
|
|
593
614
|
}
|
|
594
615
|
else
|
|
595
616
|
{
|
|
@@ -607,7 +628,6 @@ export class DateTimeUtil
|
|
|
607
628
|
}
|
|
608
629
|
}
|
|
609
630
|
else
|
|
610
|
-
{
|
|
611
631
|
if (totalDays < 335)
|
|
612
632
|
{
|
|
613
633
|
t.month = 11;
|
|
@@ -618,7 +638,6 @@ export class DateTimeUtil
|
|
|
618
638
|
t.month = 12;
|
|
619
639
|
t.day = (totalDays - 335 + 1);
|
|
620
640
|
}
|
|
621
|
-
}
|
|
622
641
|
}
|
|
623
642
|
}
|
|
624
643
|
}
|
|
@@ -640,7 +659,6 @@ export class DateTimeUtil
|
|
|
640
659
|
}
|
|
641
660
|
}
|
|
642
661
|
else
|
|
643
|
-
{
|
|
644
662
|
if (totalDays < 90)
|
|
645
663
|
{
|
|
646
664
|
t.month = 3;
|
|
@@ -651,7 +669,6 @@ export class DateTimeUtil
|
|
|
651
669
|
t.month = 4;
|
|
652
670
|
t.day = (totalDays - 90 + 1);
|
|
653
671
|
}
|
|
654
|
-
}
|
|
655
672
|
}
|
|
656
673
|
else
|
|
657
674
|
{
|
|
@@ -671,7 +688,6 @@ export class DateTimeUtil
|
|
|
671
688
|
}
|
|
672
689
|
}
|
|
673
690
|
else
|
|
674
|
-
{
|
|
675
691
|
if (totalDays < 212)
|
|
676
692
|
{
|
|
677
693
|
t.month = 7;
|
|
@@ -682,7 +698,6 @@ export class DateTimeUtil
|
|
|
682
698
|
t.month = 8;
|
|
683
699
|
t.day = (totalDays - 212 + 1);
|
|
684
700
|
}
|
|
685
|
-
}
|
|
686
701
|
}
|
|
687
702
|
else
|
|
688
703
|
{
|
|
@@ -700,7 +715,6 @@ export class DateTimeUtil
|
|
|
700
715
|
}
|
|
701
716
|
}
|
|
702
717
|
else
|
|
703
|
-
{
|
|
704
718
|
if (totalDays < 334)
|
|
705
719
|
{
|
|
706
720
|
t.month = 11;
|
|
@@ -711,7 +725,6 @@ export class DateTimeUtil
|
|
|
711
725
|
t.month = 12;
|
|
712
726
|
t.day = (totalDays - 334 + 1);
|
|
713
727
|
}
|
|
714
|
-
}
|
|
715
728
|
}
|
|
716
729
|
}
|
|
717
730
|
}
|
|
@@ -722,8 +735,8 @@ export class DateTimeUtil
|
|
|
722
735
|
if (tzQhr == null)
|
|
723
736
|
tzQhr = DateTimeUtil.getLocalTzQhr();
|
|
724
737
|
secs = secs + tzQhr * 900;
|
|
725
|
-
|
|
726
|
-
|
|
738
|
+
let totalDays = Math.floor(secs / 86400);
|
|
739
|
+
let minutes;
|
|
727
740
|
if (secs < 0)
|
|
728
741
|
{
|
|
729
742
|
secs -= totalDays * 86400;
|
|
@@ -739,7 +752,7 @@ export class DateTimeUtil
|
|
|
739
752
|
minutes = (secs % 86400);
|
|
740
753
|
}
|
|
741
754
|
|
|
742
|
-
|
|
755
|
+
let t = new TimeValue();
|
|
743
756
|
t.second = (minutes % 60);
|
|
744
757
|
minutes = Math.floor(minutes / 60);
|
|
745
758
|
t.minute = (minutes % 60);
|
|
@@ -752,23 +765,23 @@ export class DateTimeUtil
|
|
|
752
765
|
|
|
753
766
|
static toString(tval, pattern)
|
|
754
767
|
{
|
|
755
|
-
|
|
756
|
-
|
|
768
|
+
let output = new Array();
|
|
769
|
+
let i = 0;
|
|
757
770
|
while (i < pattern.length)
|
|
758
771
|
{
|
|
759
772
|
switch (pattern.charAt(i))
|
|
760
773
|
{
|
|
761
774
|
case 'y':
|
|
762
775
|
{
|
|
763
|
-
|
|
764
|
-
|
|
776
|
+
let thisVal = tval.year;
|
|
777
|
+
let digiCnt = 1;
|
|
765
778
|
i++;
|
|
766
779
|
while (i < pattern.length && pattern.charAt(i) == 'y')
|
|
767
780
|
{
|
|
768
781
|
digiCnt++;
|
|
769
782
|
i++;
|
|
770
783
|
}
|
|
771
|
-
|
|
784
|
+
let s = ""+thisVal;
|
|
772
785
|
if (s.length >= digiCnt)
|
|
773
786
|
{
|
|
774
787
|
output.push(s.substr(s.length - digiCnt));
|
|
@@ -861,42 +874,42 @@ export class DateTimeUtil
|
|
|
861
874
|
}
|
|
862
875
|
else if (i + 2 >= pattern.length || pattern.charAt(i + 2) != 'f')
|
|
863
876
|
{
|
|
864
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 10000000), 2));
|
|
877
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 10000000), 2));
|
|
865
878
|
i += 2;
|
|
866
879
|
}
|
|
867
880
|
else if (i + 3 >= pattern.length || pattern.charAt(i + 3) != 'f')
|
|
868
881
|
{
|
|
869
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 1000000), 3));
|
|
882
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 1000000), 3));
|
|
870
883
|
i += 3;
|
|
871
884
|
}
|
|
872
885
|
else if (i + 4 >= pattern.length || pattern.charAt(i + 4) != 'f')
|
|
873
886
|
{
|
|
874
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 100000), 4));
|
|
887
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 100000), 4));
|
|
875
888
|
i += 4;
|
|
876
889
|
}
|
|
877
890
|
else if (i + 5 >= pattern.length || pattern.charAt(i + 5) != 'f')
|
|
878
891
|
{
|
|
879
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 10000), 5));
|
|
892
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 10000), 5));
|
|
880
893
|
i += 5;
|
|
881
894
|
}
|
|
882
895
|
else if (i + 6 >= pattern.length || pattern.charAt(i + 6) != 'f')
|
|
883
896
|
{
|
|
884
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 1000), 6));
|
|
897
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 1000), 6));
|
|
885
898
|
i += 6;
|
|
886
899
|
}
|
|
887
900
|
else if (i + 7 >= pattern.length || pattern.charAt(i + 7) != 'f')
|
|
888
901
|
{
|
|
889
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 100), 7));
|
|
902
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 100), 7));
|
|
890
903
|
i += 7;
|
|
891
904
|
}
|
|
892
905
|
else if (i + 8 >= pattern.length || pattern.charAt(i + 8) != 'f')
|
|
893
906
|
{
|
|
894
|
-
output.push(zeroPad(Math.floor(tval.nanosec / 10), 8));
|
|
907
|
+
output.push(text.zeroPad(Math.floor(tval.nanosec / 10), 8));
|
|
895
908
|
i += 8;
|
|
896
909
|
}
|
|
897
910
|
else
|
|
898
911
|
{
|
|
899
|
-
output.push(""+zeroPad(tval.nanosec, 9));
|
|
912
|
+
output.push(""+text.zeroPad(tval.nanosec, 9));
|
|
900
913
|
i += 9;
|
|
901
914
|
while (i < pattern.length && pattern.charAt(i) == 'f')
|
|
902
915
|
{
|
|
@@ -908,8 +921,8 @@ export class DateTimeUtil
|
|
|
908
921
|
}
|
|
909
922
|
case 'F':
|
|
910
923
|
{
|
|
911
|
-
|
|
912
|
-
|
|
924
|
+
let digiCnt;
|
|
925
|
+
let thisMS;
|
|
913
926
|
if (i + 1 >= pattern.length || pattern.charAt(i + 1) != 'F')
|
|
914
927
|
{
|
|
915
928
|
digiCnt = 1;
|
|
@@ -936,12 +949,12 @@ export class DateTimeUtil
|
|
|
936
949
|
break;
|
|
937
950
|
}
|
|
938
951
|
if (digiCnt > 0)
|
|
939
|
-
output.push(zeroPad(thisMS, digiCnt));
|
|
952
|
+
output.push(text.zeroPad(thisMS, digiCnt));
|
|
940
953
|
break;
|
|
941
954
|
}
|
|
942
955
|
case 'h':
|
|
943
956
|
{
|
|
944
|
-
|
|
957
|
+
let thisH = tval.hour % 12;
|
|
945
958
|
if (thisH == 0)
|
|
946
959
|
{
|
|
947
960
|
thisH = 12;
|
|
@@ -953,7 +966,7 @@ export class DateTimeUtil
|
|
|
953
966
|
}
|
|
954
967
|
else
|
|
955
968
|
{
|
|
956
|
-
output.push(zeroPad(thisH, 2));
|
|
969
|
+
output.push(text.zeroPad(thisH, 2));
|
|
957
970
|
i++;
|
|
958
971
|
|
|
959
972
|
// while (*pattern == 'h')
|
|
@@ -970,7 +983,7 @@ export class DateTimeUtil
|
|
|
970
983
|
}
|
|
971
984
|
else
|
|
972
985
|
{
|
|
973
|
-
output.push(zeroPad(tval.hour, 2));
|
|
986
|
+
output.push(text.zeroPad(tval.hour, 2));
|
|
974
987
|
i++;
|
|
975
988
|
// while (*pattern == 'H')
|
|
976
989
|
// pattern++;
|
|
@@ -986,7 +999,7 @@ export class DateTimeUtil
|
|
|
986
999
|
}
|
|
987
1000
|
else if (i + 2 >= pattern.length || pattern.charAt(i + 2) != 'M')
|
|
988
1001
|
{
|
|
989
|
-
output.push(zeroPad(tval.month, 2));
|
|
1002
|
+
output.push(text.zeroPad(tval.month, 2));
|
|
990
1003
|
i += 2;
|
|
991
1004
|
}
|
|
992
1005
|
else if (pattern[3] != 'M')
|
|
@@ -1035,8 +1048,8 @@ export class DateTimeUtil
|
|
|
1035
1048
|
}
|
|
1036
1049
|
case 'z':
|
|
1037
1050
|
{
|
|
1038
|
-
|
|
1039
|
-
|
|
1051
|
+
let hr = tval.tzQhr >> 2;
|
|
1052
|
+
let min = (tval.tzQhr & 3) * 15;
|
|
1040
1053
|
if (i + 1 >= pattern.length || pattern.charAt(i + 1) != 'z')
|
|
1041
1054
|
{
|
|
1042
1055
|
if (hr >= 0)
|
|
@@ -1053,11 +1066,11 @@ export class DateTimeUtil
|
|
|
1053
1066
|
{
|
|
1054
1067
|
if (hr >= 0)
|
|
1055
1068
|
{
|
|
1056
|
-
output.push("+" + zeroPad(hr, 2));
|
|
1069
|
+
output.push("+" + text.zeroPad(hr, 2));
|
|
1057
1070
|
}
|
|
1058
1071
|
else
|
|
1059
1072
|
{
|
|
1060
|
-
output.push("-" + zeroPad(-hr, 2));
|
|
1073
|
+
output.push("-" + text.zeroPad(-hr, 2));
|
|
1061
1074
|
}
|
|
1062
1075
|
i += 2;
|
|
1063
1076
|
}
|
|
@@ -1065,11 +1078,11 @@ export class DateTimeUtil
|
|
|
1065
1078
|
{
|
|
1066
1079
|
if (hr >= 0)
|
|
1067
1080
|
{
|
|
1068
|
-
output.push("+" + zeroPad(hr, 2) + zeroPad(min, 2));
|
|
1081
|
+
output.push("+" + text.zeroPad(hr, 2) + text.zeroPad(min, 2));
|
|
1069
1082
|
}
|
|
1070
1083
|
else
|
|
1071
1084
|
{
|
|
1072
|
-
output.push("-" + zeroPad(-hr, 2) + zeroPad(min, 2));
|
|
1085
|
+
output.push("-" + text.zeroPad(-hr, 2) + text.zeroPad(min, 2));
|
|
1073
1086
|
}
|
|
1074
1087
|
i += 3;
|
|
1075
1088
|
}
|
|
@@ -1077,11 +1090,11 @@ export class DateTimeUtil
|
|
|
1077
1090
|
{
|
|
1078
1091
|
if (hr >= 0)
|
|
1079
1092
|
{
|
|
1080
|
-
output.push("+" + zeroPad(hr, 2) + ':' + zeroPad(min, 2));
|
|
1093
|
+
output.push("+" + text.zeroPad(hr, 2) + ':' + text.zeroPad(min, 2));
|
|
1081
1094
|
}
|
|
1082
1095
|
else
|
|
1083
1096
|
{
|
|
1084
|
-
output.push("-" + zeroPad(-hr, 2) + ':' + zeroPad(min, 2));
|
|
1097
|
+
output.push("-" + text.zeroPad(-hr, 2) + ':' + text.zeroPad(min, 2));
|
|
1085
1098
|
}
|
|
1086
1099
|
i += 4;
|
|
1087
1100
|
while (i < pattern.length && pattern.charAt(i) == 'z')
|
|
@@ -1115,12 +1128,11 @@ export class DateTimeUtil
|
|
|
1115
1128
|
return null;
|
|
1116
1129
|
if (tzQhr == null)
|
|
1117
1130
|
tzQhr = DateTimeUtil.getLocalTzQhr();
|
|
1118
|
-
|
|
1131
|
+
let tval = new TimeValue();
|
|
1119
1132
|
tval.nanosec = 0;
|
|
1120
1133
|
tval.tzQhr = tzQhr;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
var succ = true;
|
|
1134
|
+
let strs2;
|
|
1135
|
+
let strs;
|
|
1124
1136
|
if (dateStr.charAt(3) == ',' && dateStr.indexOf(',', 4) == -1)
|
|
1125
1137
|
{
|
|
1126
1138
|
dateStr = dateStr.substr(4);
|
|
@@ -1134,7 +1146,7 @@ export class DateTimeUtil
|
|
|
1134
1146
|
}
|
|
1135
1147
|
if (strs2.length == 2)
|
|
1136
1148
|
{
|
|
1137
|
-
|
|
1149
|
+
let dateSucc = true;
|
|
1138
1150
|
if ((strs = strs2[0].split('-')).length == 3)
|
|
1139
1151
|
{
|
|
1140
1152
|
DateTimeUtil.dateValueSetDate(tval, strs);
|
|
@@ -1152,18 +1164,18 @@ export class DateTimeUtil
|
|
|
1152
1164
|
tval = DateTimeUtil.ticks2TimeValue(new Date().getTime(), tzQhr);
|
|
1153
1165
|
dateSucc = false;
|
|
1154
1166
|
}
|
|
1155
|
-
|
|
1167
|
+
let i = strs2[1].indexOf('-');
|
|
1156
1168
|
if (i == -1)
|
|
1157
1169
|
{
|
|
1158
1170
|
i = strs2[1].indexOf('+');
|
|
1159
1171
|
}
|
|
1160
1172
|
if (i != -1)
|
|
1161
1173
|
{
|
|
1162
|
-
|
|
1163
|
-
|
|
1174
|
+
let c = strs2[1].charAt(i);
|
|
1175
|
+
let tz = strs2[1].substr(i + 1);
|
|
1164
1176
|
if (tz.length == 5)
|
|
1165
1177
|
{
|
|
1166
|
-
|
|
1178
|
+
let min = strs2[1].substr(i + 4) - 0;
|
|
1167
1179
|
if (tz.charAt(2) == ':')
|
|
1168
1180
|
{
|
|
1169
1181
|
tz = tz.substr(0, 2);
|
|
@@ -1246,11 +1258,11 @@ export class DateTimeUtil
|
|
|
1246
1258
|
}
|
|
1247
1259
|
else if (strs2.length == 4 || (strs2.length == 5 && (strs2[4].charAt(0) == '-' || strs2[4].charAt(0) == '+' || strs2[4] == "GMT")))
|
|
1248
1260
|
{
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1261
|
+
let len1 = strs2[0].length;
|
|
1262
|
+
let len2 = strs2[1].length;
|
|
1263
|
+
let len3 = strs2[2].length;
|
|
1264
|
+
let len4 = strs2[3].length;
|
|
1265
|
+
let timeStr = strs2[3];
|
|
1254
1266
|
if (len1 == 3 && len2 <= 2 && len3 == 4)
|
|
1255
1267
|
{
|
|
1256
1268
|
tval.year = DateTimeUtil.parseYearStr(strs2[2]);
|
|
@@ -1291,7 +1303,7 @@ export class DateTimeUtil
|
|
|
1291
1303
|
}
|
|
1292
1304
|
else if (strs2[4].length == 5)
|
|
1293
1305
|
{
|
|
1294
|
-
|
|
1306
|
+
let min = strs2[4].substr(3) - 0;
|
|
1295
1307
|
if (strs2[4].charAt(2) == ':')
|
|
1296
1308
|
{
|
|
1297
1309
|
strs2[4] = strs2[4].substr(0, 2);
|
|
@@ -1321,8 +1333,8 @@ export class DateTimeUtil
|
|
|
1321
1333
|
tval.minute = 0;
|
|
1322
1334
|
tval.second = 0;
|
|
1323
1335
|
|
|
1324
|
-
|
|
1325
|
-
|
|
1336
|
+
let j = 0;
|
|
1337
|
+
let i;
|
|
1326
1338
|
while (j < strs2.length)
|
|
1327
1339
|
{
|
|
1328
1340
|
if ((strs = strs2[j].split(':')).length == 3)
|
|
@@ -1410,7 +1422,7 @@ export class DateTimeUtil
|
|
|
1410
1422
|
|
|
1411
1423
|
static parseYearStr(year)
|
|
1412
1424
|
{
|
|
1413
|
-
|
|
1425
|
+
let y = year - 0;
|
|
1414
1426
|
if (y > 0)
|
|
1415
1427
|
return y;
|
|
1416
1428
|
return y + 1;
|
|
@@ -1490,8 +1502,8 @@ export class Duration
|
|
|
1490
1502
|
{
|
|
1491
1503
|
if (ticks < 0)
|
|
1492
1504
|
{
|
|
1493
|
-
|
|
1494
|
-
|
|
1505
|
+
let ns = ticks % 1000;
|
|
1506
|
+
let seconds = Math.floor(ticks / 1000);
|
|
1495
1507
|
if (ns != 0)
|
|
1496
1508
|
{
|
|
1497
1509
|
ns = (-ns) * 1000000;
|
|
@@ -1509,8 +1521,8 @@ export class Duration
|
|
|
1509
1521
|
{
|
|
1510
1522
|
if (us < 0)
|
|
1511
1523
|
{
|
|
1512
|
-
|
|
1513
|
-
|
|
1524
|
+
let ns = us % 1000000;
|
|
1525
|
+
let seconds = Math.floor(us / 1000000);
|
|
1514
1526
|
if (ns != 0)
|
|
1515
1527
|
return new Duration(seconds, 0);
|
|
1516
1528
|
else
|
|
@@ -1554,9 +1566,9 @@ export class Duration
|
|
|
1554
1566
|
|
|
1555
1567
|
toString()
|
|
1556
1568
|
{
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1569
|
+
let txt = new Array();
|
|
1570
|
+
let secs = this.seconds;
|
|
1571
|
+
let ns = this.nanosec;
|
|
1560
1572
|
if (secs < 0)
|
|
1561
1573
|
{
|
|
1562
1574
|
txt.push('-');
|
|
@@ -1588,7 +1600,7 @@ export class Duration
|
|
|
1588
1600
|
if (ns != 0)
|
|
1589
1601
|
{
|
|
1590
1602
|
txt.push('.');
|
|
1591
|
-
|
|
1603
|
+
let s = ""+ns;
|
|
1592
1604
|
while (s.length < 9) s = "0"+s;
|
|
1593
1605
|
while (s.endsWith("0")) s = s.substring(0, s.length - 1);
|
|
1594
1606
|
txt.push(s);
|
|
@@ -1609,7 +1621,7 @@ export class LocalDate
|
|
|
1609
1621
|
}
|
|
1610
1622
|
else
|
|
1611
1623
|
{
|
|
1612
|
-
|
|
1624
|
+
let t = typeof year;
|
|
1613
1625
|
if (t == "number")
|
|
1614
1626
|
{
|
|
1615
1627
|
if (month != null && day != null)
|
|
@@ -1621,7 +1633,7 @@ export class LocalDate
|
|
|
1621
1633
|
this.dateVal = year;
|
|
1622
1634
|
}
|
|
1623
1635
|
}
|
|
1624
|
-
else if (t == "string" && isInteger(year))
|
|
1636
|
+
else if (t == "string" && text.isInteger(year))
|
|
1625
1637
|
{
|
|
1626
1638
|
if (month != null && day != null)
|
|
1627
1639
|
{
|
|
@@ -1638,7 +1650,7 @@ export class LocalDate
|
|
|
1638
1650
|
}
|
|
1639
1651
|
else
|
|
1640
1652
|
{
|
|
1641
|
-
|
|
1653
|
+
let tval = DateTimeUtil.string2TimeValue(year, 0);
|
|
1642
1654
|
if (tval == null)
|
|
1643
1655
|
{
|
|
1644
1656
|
this.dateVal = LocalDate.DATE_NULL;
|
|
@@ -1658,7 +1670,7 @@ export class LocalDate
|
|
|
1658
1670
|
|
|
1659
1671
|
getDateValue()
|
|
1660
1672
|
{
|
|
1661
|
-
|
|
1673
|
+
let d = new DateValue();
|
|
1662
1674
|
DateTimeUtil.totalDays2DateValue(this.dateVal, d);
|
|
1663
1675
|
return d;
|
|
1664
1676
|
}
|
|
@@ -1670,28 +1682,28 @@ export class LocalDate
|
|
|
1670
1682
|
|
|
1671
1683
|
setYear(year)
|
|
1672
1684
|
{
|
|
1673
|
-
|
|
1685
|
+
let d = new DateValue();
|
|
1674
1686
|
DateTimeUtil.totalDays2DateValue(this.dateVal, d);
|
|
1675
1687
|
this.dateVal = DateTimeUtil.date2TotalDays(year, d.month, d.day);
|
|
1676
1688
|
}
|
|
1677
1689
|
|
|
1678
1690
|
setMonth(month)
|
|
1679
1691
|
{
|
|
1680
|
-
|
|
1692
|
+
let d = new DateValue();
|
|
1681
1693
|
DateTimeUtil.totalDays2DateValue(this.dateVal, d);
|
|
1682
1694
|
this.dateVal = DateTimeUtil.date2TotalDays(d.year, month, d.day);
|
|
1683
1695
|
}
|
|
1684
1696
|
|
|
1685
1697
|
setDay(day)
|
|
1686
1698
|
{
|
|
1687
|
-
|
|
1699
|
+
let d = new DateValue();
|
|
1688
1700
|
DateTimeUtil.totalDays2DateValue(this.dateVal, d);
|
|
1689
1701
|
this.dateVal = DateTimeUtil.date2TotalDays(d.year, d.month, day);
|
|
1690
1702
|
}
|
|
1691
1703
|
|
|
1692
1704
|
isYearLeap()
|
|
1693
1705
|
{
|
|
1694
|
-
|
|
1706
|
+
let d = new DateValue();
|
|
1695
1707
|
DateTimeUtil.totalDays2DateValue(this.dateVal, d);
|
|
1696
1708
|
return DateTimeUtil.isYearLeap(d.year);
|
|
1697
1709
|
}
|
|
@@ -1705,7 +1717,7 @@ export class LocalDate
|
|
|
1705
1717
|
{
|
|
1706
1718
|
if (pattern == null)
|
|
1707
1719
|
pattern = "yyyy-MM-dd";
|
|
1708
|
-
|
|
1720
|
+
let t = new TimeValue();
|
|
1709
1721
|
DateTimeUtil.totalDays2DateValue(this.dateVal, t);
|
|
1710
1722
|
return DateTimeUtil.toString(t, pattern);
|
|
1711
1723
|
}
|
|
@@ -1738,10 +1750,10 @@ export class TimeInstant
|
|
|
1738
1750
|
{
|
|
1739
1751
|
if (window.performance)
|
|
1740
1752
|
{
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1753
|
+
let t1 = performance.now();
|
|
1754
|
+
let t2 = performance.timeOrigin;
|
|
1755
|
+
let secs = Math.floor((t1 + t2) / 1000);
|
|
1756
|
+
let ns = (t1 / 1000) - Math.floor(t1 / 1000) + (t2 / 1000) - Math.floor(t2 / 1000);
|
|
1745
1757
|
if (ns >= 1)
|
|
1746
1758
|
ns -= 1;
|
|
1747
1759
|
return new TimeInstant(secs, Math.round(ns * 1000000000));
|
|
@@ -1754,15 +1766,15 @@ export class TimeInstant
|
|
|
1754
1766
|
|
|
1755
1767
|
static fromVariTime(variTime)
|
|
1756
1768
|
{
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1769
|
+
let days = Math.floor(variTime);
|
|
1770
|
+
let ds = (variTime - days);
|
|
1771
|
+
let s = Math.floor(ds * 86400);
|
|
1760
1772
|
return new TimeInstant((days - 25569) * 86400000 + Math.floor(ds * 86400000), ((ds * 86400 - s) * 1000000000));
|
|
1761
1773
|
}
|
|
1762
1774
|
|
|
1763
1775
|
static fromTicks(ticks)
|
|
1764
1776
|
{
|
|
1765
|
-
|
|
1777
|
+
let ms = (ticks % 1000);
|
|
1766
1778
|
if (ms < 0)
|
|
1767
1779
|
{
|
|
1768
1780
|
return new TimeInstant(Math.floor(ticks / 1000) - 1, (ms + 1000) * 1000000);
|
|
@@ -1795,7 +1807,7 @@ export class TimeInstant
|
|
|
1795
1807
|
|
|
1796
1808
|
addMS(val)
|
|
1797
1809
|
{
|
|
1798
|
-
|
|
1810
|
+
let newSec = this.sec + Math.floor(val / 1000);
|
|
1799
1811
|
val = (val % 1000) * 1000000 + this.nanosec;
|
|
1800
1812
|
while (val > 1000000000)
|
|
1801
1813
|
{
|
|
@@ -1807,7 +1819,7 @@ export class TimeInstant
|
|
|
1807
1819
|
|
|
1808
1820
|
addNS(val)
|
|
1809
1821
|
{
|
|
1810
|
-
|
|
1822
|
+
let newSec = this.sec + Math.floor(val / 1000000000);
|
|
1811
1823
|
val = val % 1000000000 + this.nanosec;
|
|
1812
1824
|
while (val > 1000000000)
|
|
1813
1825
|
{
|
|
@@ -1861,9 +1873,9 @@ export class TimeInstant
|
|
|
1861
1873
|
|
|
1862
1874
|
diff(ts)
|
|
1863
1875
|
{
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1876
|
+
let secs = this.sec - ts.sec;
|
|
1877
|
+
let ns1 = this.nanosec;
|
|
1878
|
+
let ns2 = ts.nanosec;
|
|
1867
1879
|
if (ns1 >= ns2)
|
|
1868
1880
|
return new Duration(secs, ns1 - ns2);
|
|
1869
1881
|
else
|
|
@@ -1918,7 +1930,7 @@ export class Timestamp
|
|
|
1918
1930
|
|
|
1919
1931
|
static fromStr(str, defTzQhr)
|
|
1920
1932
|
{
|
|
1921
|
-
|
|
1933
|
+
let tval = DateTimeUtil.string2TimeValue(str, defTzQhr);
|
|
1922
1934
|
if (tval == 0)
|
|
1923
1935
|
{
|
|
1924
1936
|
return new Timestamp(new TimeInstant(0, 0), defTzQhr);
|
|
@@ -1995,7 +2007,7 @@ export class Timestamp
|
|
|
1995
2007
|
|
|
1996
2008
|
static fromYMDHMS(ymdhms, tzQhr)
|
|
1997
2009
|
{
|
|
1998
|
-
|
|
2010
|
+
let tval = DateTimeUtil.timeValueFromYMDHMS(ymdhms);
|
|
1999
2011
|
if (tval != null)
|
|
2000
2012
|
{
|
|
2001
2013
|
return new Timestamp(new TimeInstant(DateTimeUtil.timeValue2Secs(tval), 0), tzQhr);
|
|
@@ -2008,7 +2020,7 @@ export class Timestamp
|
|
|
2008
2020
|
|
|
2009
2021
|
addMonth(val)
|
|
2010
2022
|
{
|
|
2011
|
-
|
|
2023
|
+
let tval = this.toTimeValue();
|
|
2012
2024
|
val += tval.month;
|
|
2013
2025
|
while (val < 1)
|
|
2014
2026
|
{
|
|
@@ -2026,7 +2038,7 @@ export class Timestamp
|
|
|
2026
2038
|
|
|
2027
2039
|
addYear(val)
|
|
2028
2040
|
{
|
|
2029
|
-
|
|
2041
|
+
let tval = this.toTimeValue();
|
|
2030
2042
|
tval.year = (tval.year + val);
|
|
2031
2043
|
return new Timestamp(new TimeInstant(DateTimeUtil.timeValue2Secs(tval), this.inst.nanosec), this.tzQhr);
|
|
2032
2044
|
}
|
|
@@ -2048,8 +2060,8 @@ export class Timestamp
|
|
|
2048
2060
|
|
|
2049
2061
|
addSecond(val)
|
|
2050
2062
|
{
|
|
2051
|
-
|
|
2052
|
-
|
|
2063
|
+
let sec = Math.floor(val);
|
|
2064
|
+
let ns = Math.floor((val - sec) * 1000000000);
|
|
2053
2065
|
return new Timestamp(this.inst.addSecond(sec).addNS(ns), this.tzQhr);
|
|
2054
2066
|
}
|
|
2055
2067
|
|
|
@@ -2080,7 +2092,7 @@ export class Timestamp
|
|
|
2080
2092
|
|
|
2081
2093
|
clearMonthAndDay()
|
|
2082
2094
|
{
|
|
2083
|
-
|
|
2095
|
+
let tval = this.toTimeValue();
|
|
2084
2096
|
tval.month = 1;
|
|
2085
2097
|
tval.day = 1;
|
|
2086
2098
|
tval.hour = 0;
|
|
@@ -2092,7 +2104,7 @@ export class Timestamp
|
|
|
2092
2104
|
|
|
2093
2105
|
clearDayOfMonth()
|
|
2094
2106
|
{
|
|
2095
|
-
|
|
2107
|
+
let tval = this.toTimeValue();
|
|
2096
2108
|
tval.day = 1;
|
|
2097
2109
|
tval.hour = 0;
|
|
2098
2110
|
tval.minute = 0;
|
|
@@ -2182,7 +2194,7 @@ export class Timestamp
|
|
|
2182
2194
|
pattern = "yyyy-MM-dd HH:mm:ss.fffffffff zzzz";
|
|
2183
2195
|
}
|
|
2184
2196
|
}
|
|
2185
|
-
|
|
2197
|
+
let tval = DateTimeUtil.instant2TimeValue(this.inst.sec, this.inst.nanosec, this.tzQhr);
|
|
2186
2198
|
return DateTimeUtil.toString(tval, pattern);
|
|
2187
2199
|
}
|
|
2188
2200
|
|