-
Notifications
You must be signed in to change notification settings - Fork 92
/
test1output.txt
3070 lines (3066 loc) · 169 KB
/
test1output.txt
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
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
MODE = 'full'
GETHATTACHPOINT = 'ipc:./testchain/geth.ipc'
PASSWORD = ''
SOURCEDIR = '../contracts'
DATETIMELIBSOL = 'BokkyPooBahsDateTimeLibrary.sol'
DATETIMELIBJS = 'BokkyPooBahsDateTimeLibrary.js'
TESTDATETIMESOL = 'TestDateTime.sol'
TESTDATETIMEJS = 'TestDateTime.js'
DEPLOYMENTDATA = 'deploymentData.js'
TEST1OUTPUT = 'test1output.txt'
TEST1RESULTS = 'test1results.txt'
CURRENTTIME = '1579355174' 'Sun Jan 19 00:46:14 2020'
START_DATE = '1579355219' 'Sun Jan 19 00:46:59 2020'
END_DATE = '1579355294' 'Sun Jan 19 00:48:14 2020'
--- Differences ../contracts/BokkyPooBahsDateTimeLibrary.sol BokkyPooBahsDateTimeLibrary.sol ---
--- Differences ../contracts/TestDateTime.sol TestDateTime.sol ---
solc, the solidity compiler commandline interface
Version: 0.6.0+commit.26b70077.Darwin.appleclang
contractsdir: ../contracts
remapdir : (no remapping)
mainsol : TestDateTime.sol
outputsol : ../flattened/TestDateTime_flattened.sol
Processing ../contracts/TestDateTime.sol
Importing ../contracts/BokkyPooBahsDateTimeLibrary.sol
Processing ../contracts/BokkyPooBahsDateTimeLibrary.sol
Welcome to the Geth JavaScript console!
instance: Geth/v1.9.9-stable-01744997/darwin-amd64/go1.13.5
coinbase: 0xa00af22d07c87d96eeeb0ed583f8f6ac7812827e
at block: 5 (Sun, 19 Jan 2020 00:46:15 AEDT)
datadir: /Users/bok/Projects/BokkyPooBahsDateTimeLibrary/test/testchain
modules: admin:1.0 clique:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0
>
true
>
true
>
true
>
>
undefined
>
undefined
>
undefined
>
undefined
>
>
DATA: dateTimeLibAbi=[]
undefined
>
DATA: dateTimeLibBin="0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122075d49f0ac9a443fac8bb202f0adb9e02ed12cbbf6d4d258fcb57548a1e88719064736f6c63430006000033"
undefined
>
DATA: testDateTimeAbi=[{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"}],"name":"_getDaysInMonth","outputs":[{"internalType":"uint256","name":"daysInMonth","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"}],"name":"_isLeapYear","outputs":[{"internalType":"bool","name":"leapYear","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"addDays","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_hours","type":"uint256"}],"name":"addHours","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_minutes","type":"uint256"}],"name":"addMinutes","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_months","type":"uint256"}],"name":"addMonths","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"addSeconds","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_years","type":"uint256"}],"name":"addYears","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffDays","outputs":[{"internalType":"uint256","name":"_days","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffHours","outputs":[{"internalType":"uint256","name":"_hours","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffMinutes","outputs":[{"internalType":"uint256","name":"_minutes","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffMonths","outputs":[{"internalType":"uint256","name":"_months","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffSeconds","outputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffYears","outputs":[{"internalType":"uint256","name":"_years","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDay","outputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDayOfWeek","outputs":[{"internalType":"uint256","name":"dayOfWeek","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDaysInMonth","outputs":[{"internalType":"uint256","name":"daysInMonth","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getHour","outputs":[{"internalType":"uint256","name":"hour","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMinute","outputs":[{"internalType":"uint256","name":"minute","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMonth","outputs":[{"internalType":"uint256","name":"month","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getSecond","outputs":[{"internalType":"uint256","name":"second","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getYear","outputs":[{"internalType":"uint256","name":"year","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isLeapYear","outputs":[{"internalType":"bool","name":"leapYear","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"name":"isValidDate","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"},{"internalType":"uint256","name":"minute","type":"uint256"},{"internalType":"uint256","name":"second","type":"uint256"}],"name":"isValidDateTime","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isWeekDay","outputs":[{"internalType":"bool","name":"weekDay","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isWeekEnd","outputs":[{"internalType":"bool","name":"weekEnd","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"nextYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"subDays","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_hours","type":"uint256"}],"name":"subHours","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_minutes","type":"uint256"}],"name":"subMinutes","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_months","type":"uint256"}],"name":"subMonths","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"subSeconds","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_years","type":"uint256"}],"name":"subYears","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"test","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"name":"timestampFromDate","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"},{"internalType":"uint256","name":"minute","type":"uint256"},{"internalType":"uint256","name":"second","type":"uint256"}],"name":"timestampFromDateTime","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"timestampToDate","outputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"timestampToDateTime","outputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"},{"internalType":"uint256","name":"minute","type":"uint256"},{"internalType":"uint256","name":"second","type":"uint256"}],"stateMutability":"pure","type":"function"}]
undefined
>
DATA: testDateTimeBin="0x608060405234801561001057600080fd5b506110ed806100206000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c80637217523c1161013b578063b8d16dbc116100b8578063ea1c16901161007c578063ea1c169014610704578063f615ed5414610754578063f8a8fd6d14610777578063fa93f88314610781578063ff2258cb1461079e5761023c565b8063b8d16dbc14610649578063c7b6fd6a14610666578063c9d3462214610689578063d6582d0d146106ac578063de5101af146106c95761023c565b806392d66313116100ff57806392d66313146105ac5780639e524caa146105c9578063a324ad24146105ec578063ad203bd414610609578063b05eb08d1461062c5761023c565b80637217523c146105035780637be341091461052657806389a3a00d146105495780638aa001fc1461056c5780638d4a2d39146105895761023c565b80633e239e1a116101c9578063444fda821161018d578063444fda82146104425780634b321502146104655780635e05bd6d1461048857806362fb9697146104c357806365c72840146104e65761023c565b80633e239e1a1461039f5780633f9e0eb7146103bc5780634355644d146103df5780634371c46514610402578063442b8c791461041f5761023c565b806314b2d6dc1161021057806314b2d6dc146102be5780631f4f77b2146102fb57806322f8a2b8146103245780632af123b8146103415780633293d007146103645761023c565b80625015531461024157806302e98e0d1461027657806310848ddf14610299578063146bea7b146102b6575b600080fd5b6102646004803603604081101561025757600080fd5b50803590602001356107c1565b60408051918252519081900360200190f35b6102646004803603604081101561028c57600080fd5b50803590602001356107d4565b610264600480360360208110156102af57600080fd5b50356107e0565b6102646107f1565b6102e7600480360360608110156102d457600080fd5b50803590602081013590604001356107f7565b604080519115158252519081900360200190f35b6102646004803603606081101561031157600080fd5b508035906020810135906040013561080c565b6102646004803603602081101561033a57600080fd5b5035610819565b6102646004803603604081101561035757600080fd5b5080359060200135610824565b6102e7600480360360c081101561037a57600080fd5b5080359060208101359060408101359060608101359060808101359060a00135610830565b610264600480360360208110156103b557600080fd5b503561084b565b610264600480360360408110156103d257600080fd5b5080359060200135610856565b610264600480360360408110156103f557600080fd5b5080359060200135610862565b6102e76004803603602081101561041857600080fd5b503561086e565b6102646004803603604081101561043557600080fd5b5080359060200135610879565b6102646004803603604081101561045857600080fd5b5080359060200135610885565b6102646004803603604081101561047b57600080fd5b5080359060200135610891565b610264600480360360c081101561049e57600080fd5b5080359060208101359060408101359060608101359060808101359060a0013561089d565b610264600480360360408110156104d957600080fd5b50803590602001356108b7565b610264600480360360208110156104fc57600080fd5b50356108c3565b6102646004803603604081101561051957600080fd5b50803590602001356108ce565b6102646004803603604081101561053c57600080fd5b50803590602001356108da565b6102646004803603604081101561055f57600080fd5b50803590602001356108e6565b6102646004803603602081101561058257600080fd5b50356108f2565b6102646004803603604081101561059f57600080fd5b50803590602001356108fd565b610264600480360360208110156105c257600080fd5b5035610909565b610264600480360360408110156105df57600080fd5b5080359060200135610914565b6102646004803603602081101561060257600080fd5b5035610920565b6102646004803603604081101561061f57600080fd5b508035906020013561092b565b6102e76004803603602081101561064257600080fd5b5035610937565b6102e76004803603602081101561065f57600080fd5b5035610942565b6102646004803603604081101561067c57600080fd5b508035906020013561094d565b6102646004803603604081101561069f57600080fd5b5080359060200135610959565b6102e7600480360360208110156106c257600080fd5b5035610965565b6106e6600480360360208110156106df57600080fd5b5035610970565b60408051938452602084019290925282820152519081900360600190f35b6107216004803603602081101561071a57600080fd5b503561098b565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b6102646004803603604081101561076a57600080fd5b50803590602001356109b1565b61077f6109bd565b005b6102646004803603602081101561079757600080fd5b50356109d5565b610264600480360360408110156107b457600080fd5b50803590602001356109e0565b60006107cd83836109ec565b9392505050565b60006107cd8383610a00565b60006107eb82610a1d565b92915050565b60005481565b6000610804848484610a3f565b949350505050565b6000610804848484610a95565b60006107eb82610aaf565b60006107cd8383610ac2565b6000610840878787878787610adc565b979650505050505050565b60006107eb82610b1c565b60006107cd8383610b2a565b60006107cd8383610bb0565b60006107eb82610c2a565b60006107cd8383610c3f565b60006107cd8383610c66565b60006107cd8383610cc2565b6000610840878787878787610cd6565b9695505050505050565b60006107cd8383610d00565b60006107eb82610d14565b60006107cd8383610d23565b60006107cd8383610d38565b60006107cd8383610d8a565b60006107eb82610d9d565b60006107cd8383610da4565b60006107eb82610db4565b60006107cd8383610dcc565b60006107eb82610ddf565b60006107cd8383610dee565b60006107eb82610e6e565b60006107eb82610e93565b60006107cd8383610eb0565b60006107cd8383610ec5565b60006107eb82610ee0565b600080600061097e84610ef5565b9196909550909350915050565b60008060008060008061099d87610f06565b949c939b5091995097509550909350915050565b60006107cd8383610f45565b426109cf81600163ffffffff610c3f16565b60005550565b60006107eb82610f55565b60006107cd8383610f64565b610e1081028203828111156107eb57600080fd5b600081831115610a0f57600080fd5b603c8383035b049392505050565b60008080610a3062015180855b04610fa5565b50915091506108048282610b2a565b60006107b28410158015610a535750600083115b8015610a605750600c8311155b156107cd576000610a718585610b2a565b9050600083118015610a835750808311155b15610a8d57600191505b509392505050565b600062015180610aa685858561103b565b02949350505050565b6007620151809091046003010660010190565b600081831115610ad157600080fd5b610e10838303610a15565b6000610ae9878787610a3f565b156108ad57601884108015610afe5750603c83105b8015610b0a5750603c82105b156108ad575060019695505050505050565b610e10620151809091060490565b60008160011480610b3b5750816003145b80610b465750816005145b80610b515750816007145b80610b5c5750816008145b80610b67575081600a145b80610b72575081600c145b15610b7f5750601f6107eb565b81600214610b8f5750601e6107eb565b610b9883610e6e565b610ba357601c610ba6565b601d5b60ff169392505050565b6000808080610bc26201518087610a2a565b600c918801600019810183810494909401965094509250900660010191506000610bec8484610b2a565b905080821115610bfa578091505b62015180870662015180610c0f86868661103b565b0201945086851015610c2057600080fd5b5050505092915050565b60006006610c3783610aaf565b101592915050565b6000808080610c516201518087610a2a565b9187019450925090506000610bec8484610b2a565b6000808080610c786201518087610a2a565b918790039450925090506000610c8e8484610b2a565b905080821115610c9c578091505b62015180870662015180610cb186868661103b565b0201945086851115610c2057600080fd5b610e1081028201828110156107eb57600080fd5b600081603c8402610e10860262015180610cf18b8b8b61103b565b02010101979650505050505050565b600081831115610d0f57600080fd5b500390565b60006108046201518083610a2a565b6201518081028201828110156107eb57600080fd5b600081831115610d4757600080fd5b600080610d576201518086610a2a565b5091509150600080610d6e620151808781610a2a57fe5b50600c9586029590910201939093039190910395945050505050565b603c81028201828110156107eb57600080fd5b603c900690565b818101828110156107eb57600080fd5b6000610dc36201518083610a2a565b50909392505050565b603c81028203828111156107eb57600080fd5b6000610a8d6201518083610a2a565b6000808080610e006201518087610a2a565b91945092509050600c8084028301869003600019019081049350600c810660010192506000610e2f8585610b2a565b905080831115610e3d578092505b62015180880662015180610e5287878761103b565b0201955087861115610e6357600080fd5b505050505092915050565b600060048206158015610e8357506064820615155b806107eb57505061019090061590565b600080610ea36201518084610a2a565b505090506107cd81610e6e565b6201518081028203828111156107eb57600080fd5b600081831115610ed457600080fd5b62015180838303610a15565b60006005610eed83610aaf565b111592915050565b6000808061097e6201518085610a2a565b60008080808080610f1a6201518088610a2a565b91999098919750610e10620151809092068281049750603c9290068281049650919091069350915050565b808203828111156107eb57600080fd5b6000610e108206603c81610a15565b600081831115610f7357600080fd5b6000610f826201518085610a2a565b505090506000610f97620151808581610a2a57fe5b505091909103949350505050565b60008080836226496581018262023ab1600483020590506004600362023ab18302010590910390600062164b09610fa0600185010205905060046105b58202058303601f019250600061098f8460500281610ffc57fe5b0590506000605061098f83020585039050600b820560301994909401606402929092018301996002600c90940290910392909201975095509350505050565b60006107b284101561104c57600080fd5b838383600062253d8c600460036064611324600c600d19890105890101050205600c80600d19870105600c02600287030361016f028161108857fe5b0560046105b5600c600d1989010589016112c0010205617d4b860301010303905080945050505050939250505056fea2646970667358221220144bfa7ff851a685f881e93c3b88c3dce21cc7d3c01423e087bdfba5b17d290964736f6c63430006000033"
undefined
>
>
undefined
>
RESULT: # Account EtherBalanceChange Token Name
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT: 0 0xa00af22d07c87d96eeeb0ed583f8f6ac7812827e 0.000000000000000000 0.000000000000000000 Account #0 - Miner
RESULT: 1 0xa11aae29840fbb5c86e6fd4cf809eba183aef433 0.000000000000000000 0.000000000000000000 Account #1 - Contract Owner
RESULT: 2 0xa22ab8a9d641ce77e06d98b7d7065d324d3d6976 0.000000000000000000 0.000000000000000000 Account #2 - Alice
RESULT: 3 0xa33a6c312d9ad0e0f2e95541beed0cc081621fd0 0.000000000000000000 0.000000000000000000 Account #3 - Bob
RESULT: 4 0xa44a08d3f6933c69212114bb66e2df1813651844 0.000000000000000000 0.000000000000000000 Account #4 - Carol
RESULT: 5 0xa55a151eb00fded1634d27d1127b4be4627079ea 0.000000000000000000 0.000000000000000000 Account #5 - Dave
RESULT: 6 0xa66a85ede0cbe03694aa9d9de0bb19c99ff55bd9 0.000000000000000000 0.000000000000000000 Account #6
RESULT: 7 0xa77a2b9d4b1c010a22a7c565dc418cef683dbcec 0.000000000000000000 0.000000000000000000 Account #7
RESULT: 8 0xa88a05d2b88283ce84c8325760b72a64591279a2 0.000000000000000000 0.000000000000000000 Account #8
RESULT: 9 0xa99a0ae3354c06b1459fd441a32a3f71005d7da0 0.000000000000000000 0.000000000000000000 Account #9
RESULT: 10 0xaaaa9de1e6c564446ebca0fd102d8bd92093c756 0.000000000000000000 0.000000000000000000 Account #10
RESULT: 11 0xabba43e7594e3b76afb157989e93c6621497fd4b 0.000000000000000000 0.000000000000000000 Account #11
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT: 0.000000000000000000 Total Token Balances
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT:
undefined
>
RESULT:
undefined
>
>
>
undefined
>
undefined
>
undefined
>
RESULT: ----- Deploy DateTime Library -----
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
...
......
.........
............
............
............
............
............
............
............
............
.........
......
...
undefined
>
...
undefined
>
DATA: var dateTimeLibAddress="0x90d8927407c79c4a28ee879b821c76fc9bcc2688";
DATA: var dateTimeLibAbi=[];
DATA: var dateTimeLib=eth.contract(dateTimeLibAbi).at(dateTimeLibAddress);
RESULT: # Account EtherBalanceChange Token Name
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT: 0 0xa00af22d07c87d96eeeb0ed583f8f6ac7812827e 0.001150736000000000 0.000000000000000000 Account #0 - Miner
RESULT: 1 0xa11aae29840fbb5c86e6fd4cf809eba183aef433 -0.001150736000000000 0.000000000000000000 Account #1 - Contract Owner
RESULT: 2 0xa22ab8a9d641ce77e06d98b7d7065d324d3d6976 0.000000000000000000 0.000000000000000000 Account #2 - Alice
RESULT: 3 0xa33a6c312d9ad0e0f2e95541beed0cc081621fd0 0.000000000000000000 0.000000000000000000 Account #3 - Bob
RESULT: 4 0xa44a08d3f6933c69212114bb66e2df1813651844 0.000000000000000000 0.000000000000000000 Account #4 - Carol
RESULT: 5 0xa55a151eb00fded1634d27d1127b4be4627079ea 0.000000000000000000 0.000000000000000000 Account #5 - Dave
RESULT: 6 0xa66a85ede0cbe03694aa9d9de0bb19c99ff55bd9 0.000000000000000000 0.000000000000000000 Account #6
RESULT: 7 0xa77a2b9d4b1c010a22a7c565dc418cef683dbcec 0.000000000000000000 0.000000000000000000 Account #7
RESULT: 8 0xa88a05d2b88283ce84c8325760b72a64591279a2 0.000000000000000000 0.000000000000000000 Account #8
RESULT: 9 0xa99a0ae3354c06b1459fd441a32a3f71005d7da0 0.000000000000000000 0.000000000000000000 Account #9
RESULT: 10 0xaaaa9de1e6c564446ebca0fd102d8bd92093c756 0.000000000000000000 0.000000000000000000 Account #10
RESULT: 11 0xabba43e7594e3b76afb157989e93c6621497fd4b 0.000000000000000000 0.000000000000000000 Account #11
RESULT: 12 0x90d8927407c79c4a28ee879b821c76fc9bcc2688 0.000000000000000000 0.000000000000000000 DateTime Library
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT: 0.000000000000000000 Total Token Balances
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT:
undefined
>
RESULT: PASS Deploy DateTime Library
1
>
RESULT: dateTimeLibTx status=0x1 Success gas=6000000 gasUsed=71921 costETH=0.001150736 costUSD=0.77756382256 @ ETH/USD=675.71 gasPrice=16 gwei block=19 txIx=0 txId=0x3d6e997266a4df7a6d24ad8461a47646aa30ac31435f55bc7f8d22226d67cd14 @ 1579355189 Sat, 18 Jan 2020 13:46:29 UTC
undefined
>
RESULT:
undefined
>
>
>
undefined
>
undefined
>
undefined
>
RESULT: ---------- Deploy TestDateTime Contract ----------
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
...
......
.........
............
............
............
............
............
............
............
............
............
.........
......
...
undefined
>
...
undefined
>
DATA: var testDateTimeAddress="0x0e946b999033257976aa5cbe0e3530618ca1582d";
DATA: var testDateTimeAbi=[{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"}],"name":"_getDaysInMonth","outputs":[{"internalType":"uint256","name":"daysInMonth","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"}],"name":"_isLeapYear","outputs":[{"internalType":"bool","name":"leapYear","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"addDays","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_hours","type":"uint256"}],"name":"addHours","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_minutes","type":"uint256"}],"name":"addMinutes","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_months","type":"uint256"}],"name":"addMonths","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"addSeconds","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_years","type":"uint256"}],"name":"addYears","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffDays","outputs":[{"internalType":"uint256","name":"_days","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffHours","outputs":[{"internalType":"uint256","name":"_hours","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffMinutes","outputs":[{"internalType":"uint256","name":"_minutes","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffMonths","outputs":[{"internalType":"uint256","name":"_months","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffSeconds","outputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTimestamp","type":"uint256"},{"internalType":"uint256","name":"toTimestamp","type":"uint256"}],"name":"diffYears","outputs":[{"internalType":"uint256","name":"_years","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDay","outputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDayOfWeek","outputs":[{"internalType":"uint256","name":"dayOfWeek","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDaysInMonth","outputs":[{"internalType":"uint256","name":"daysInMonth","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getHour","outputs":[{"internalType":"uint256","name":"hour","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMinute","outputs":[{"internalType":"uint256","name":"minute","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMonth","outputs":[{"internalType":"uint256","name":"month","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getSecond","outputs":[{"internalType":"uint256","name":"second","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getYear","outputs":[{"internalType":"uint256","name":"year","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isLeapYear","outputs":[{"internalType":"bool","name":"leapYear","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"name":"isValidDate","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"},{"internalType":"uint256","name":"minute","type":"uint256"},{"internalType":"uint256","name":"second","type":"uint256"}],"name":"isValidDateTime","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isWeekDay","outputs":[{"internalType":"bool","name":"weekDay","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"isWeekEnd","outputs":[{"internalType":"bool","name":"weekEnd","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"nextYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"subDays","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_hours","type":"uint256"}],"name":"subHours","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_minutes","type":"uint256"}],"name":"subMinutes","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_months","type":"uint256"}],"name":"subMonths","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"subSeconds","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"_years","type":"uint256"}],"name":"subYears","outputs":[{"internalType":"uint256","name":"newTimestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"test","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"name":"timestampFromDate","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"},{"internalType":"uint256","name":"minute","type":"uint256"},{"internalType":"uint256","name":"second","type":"uint256"}],"name":"timestampFromDateTime","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"timestampToDate","outputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"timestampToDateTime","outputs":[{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"hour","type":"uint256"},{"internalType":"uint256","name":"minute","type":"uint256"},{"internalType":"uint256","name":"second","type":"uint256"}],"stateMutability":"pure","type":"function"}];
DATA: var testDateTime=eth.contract(testDateTimeAbi).at(testDateTimeAddress);
DATA: console.log("testDateTime=" + JSON.stringify(testDateTime));
RESULT: # Account EtherBalanceChange Token Name
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT: 0 0xa00af22d07c87d96eeeb0ed583f8f6ac7812827e 0.016965312000000000 0.000000000000000000 Account #0 - Miner
RESULT: 1 0xa11aae29840fbb5c86e6fd4cf809eba183aef433 -0.016965312000000000 0.000000000000000000 Account #1 - Contract Owner
RESULT: 2 0xa22ab8a9d641ce77e06d98b7d7065d324d3d6976 0.000000000000000000 0.000000000000000000 Account #2 - Alice
RESULT: 3 0xa33a6c312d9ad0e0f2e95541beed0cc081621fd0 0.000000000000000000 0.000000000000000000 Account #3 - Bob
RESULT: 4 0xa44a08d3f6933c69212114bb66e2df1813651844 0.000000000000000000 0.000000000000000000 Account #4 - Carol
RESULT: 5 0xa55a151eb00fded1634d27d1127b4be4627079ea 0.000000000000000000 0.000000000000000000 Account #5 - Dave
RESULT: 6 0xa66a85ede0cbe03694aa9d9de0bb19c99ff55bd9 0.000000000000000000 0.000000000000000000 Account #6
RESULT: 7 0xa77a2b9d4b1c010a22a7c565dc418cef683dbcec 0.000000000000000000 0.000000000000000000 Account #7
RESULT: 8 0xa88a05d2b88283ce84c8325760b72a64591279a2 0.000000000000000000 0.000000000000000000 Account #8
RESULT: 9 0xa99a0ae3354c06b1459fd441a32a3f71005d7da0 0.000000000000000000 0.000000000000000000 Account #9
RESULT: 10 0xaaaa9de1e6c564446ebca0fd102d8bd92093c756 0.000000000000000000 0.000000000000000000 Account #10
RESULT: 11 0xabba43e7594e3b76afb157989e93c6621497fd4b 0.000000000000000000 0.000000000000000000 Account #11
RESULT: 12 0x90d8927407c79c4a28ee879b821c76fc9bcc2688 0.000000000000000000 0.000000000000000000 DateTime Library
RESULT: 13 0x0e946b999033257976aa5cbe0e3530618ca1582d 0.000000000000000000 0.000000000000000000 TestDateTime
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT: 0.000000000000000000 Total Token Balances
RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------
RESULT:
undefined
>
RESULT: PASS Deploy TestDateTime Contract
1
>
RESULT: testDateTimeAddress=0x0e946b999033257976aa5cbe0e3530618ca1582d status=0x1 Success gas=6000000 gasUsed=988411 costETH=0.015814576 costUSD=10.68606714896 @ ETH/USD=675.71 gasPrice=16 gwei block=21 txIx=0 txId=0xdb67f4d0ee1587cd570fc563c69f73dcaffc9f2f4047a1d1792218bb920fbd58 @ 1579355191 Sat, 18 Jan 2020 13:46:31 UTC
undefined
>
RESULT:
undefined
>
>
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
undefined
>
>
...
...
...
......
......
...
...
......
......
...
...
......
......
...
...
RESULT: ---------- Test isLeapYear ----------
RESULT: PASS 2000,5,24,1,2,3 is a leap year
RESULT: PASS 2100,5,24,1,2,3 is a not leap year
RESULT: PASS 2104,5,24,1,2,3 is a leap year
RESULT:
undefined
>
>
...
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
...
RESULT: ---------- Test isValidDate and isValidDateTime.call ----------
RESULT: PASS testDateTime.isValidDate.call(1969, 1, 1) is false
RESULT: PASS testDateTime.isValidDate.call(1970, 1, 1) is true
RESULT: PASS testDateTime.isValidDate.call(2000, 2, 29) is true
RESULT: PASS testDateTime.isValidDate.call(2001, 2, 29) is false
RESULT: PASS testDateTime.isValidDate.call(2001, 0, 1) is false
RESULT: PASS testDateTime.isValidDate.call(2001, 1, 0) is false
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 0, 0, 0) is true
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 1, 1, 1) is true
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 23, 1, 1) is true
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 24, 1, 1) is false
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 1, 59, 1) is true
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 1, 60, 1) is false
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 1, 1, 59) is true
RESULT: PASS testDateTime.isValidDateTime.call(2000, 2, 29, 1, 1, 60) is false
RESULT:
undefined
>
>
...
...
......
......
...
......
......
...
......
......
...
...
RESULT: ---------- Test _isLeapYear ----------
RESULT: PASS 2000 is a leap year
RESULT: PASS 2100 is a not leap year
RESULT: PASS 2104 is a leap year
RESULT:
undefined
>
>
...
...
...
......
......
...
...
......
......
...
...
......
......
...
...
RESULT: ---------- Test isWeekDay ----------
RESULT: PASS 2018,5,24,1,2,3 is a week day
RESULT: PASS 2018,5,25,1,2,3 is a week day
RESULT: PASS 2018,5,26,1,2,3 is a not week day
RESULT:
undefined
>
>
...
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
RESULT: ---------- Test isWeekEnd ----------
RESULT: PASS 2018,5,24,1,2,3 is a not a week end
RESULT: PASS 2018,5,25,1,2,3 is a not a week end
RESULT: PASS 2018,5,26,1,2,3 is a week end
RESULT: PASS 2018,5,27,1,2,3 is a week end
RESULT:
undefined
>
>
>
...
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
RESULT: ---------- Test getDaysInMonth ----------
RESULT: PASS 2000,1,24,1,2,3 has 31 days
RESULT: PASS 2000,2,24,1,2,3 has 29 days
RESULT: PASS 2001,2,24,1,2,3 has 28 days
RESULT: PASS 2000,3,24,1,2,3 has 31 days
RESULT: PASS 2000,4,24,1,2,3 has 30 days
RESULT: PASS 2000,5,24,1,2,3 has 31 days
RESULT: PASS 2000,6,24,1,2,3 has 30 days
RESULT: PASS 2000,7,24,1,2,3 has 31 days
RESULT: PASS 2000,8,24,1,2,3 has 31 days
RESULT: PASS 2000,9,24,1,2,3 has 30 days
RESULT: PASS 2000,10,24,1,2,3 has 31 days
RESULT: PASS 2000,11,24,1,2,3 has 30 days
RESULT: PASS 2000,12,24,1,2,3 has 31 days
RESULT:
undefined
>
>
>
...
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
...
RESULT: ---------- Test _getDaysInMonth ----------
RESULT: PASS 2000/01 has 31 days
RESULT: PASS 2000/02 has 29 days
RESULT: PASS 2001/02 has 28 days
RESULT: PASS 2000/03 has 31 days
RESULT: PASS 2000/04 has 30 days
RESULT: PASS 2000/05 has 31 days
RESULT: PASS 2000/06 has 30 days
RESULT: PASS 2000/07 has 31 days
RESULT: PASS 2000/08 has 31 days
RESULT: PASS 2000/09 has 30 days
RESULT: PASS 2000/10 has 31 days
RESULT: PASS 2000/11 has 30 days
RESULT: PASS 2000/12 has 31 days
RESULT:
undefined
>
>
>
...
...
...
......
......
...
...
......
......
...
...
......
......
...
...
......
......
...
...
RESULT: ---------- Test getDayOfWeek ----------
RESULT: PASS 2018,5,21,1,2,3 is 1 Monday
RESULT: PASS 2018,5,24,1,2,3 is 4 Thursday
RESULT: PASS 2018,5,26,1,2,3 is 6 Saturday
RESULT: PASS 2018,5,27,1,2,3 is 7 Sunday
RESULT:
undefined
>
>
>
...
...
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
...
RESULT: ---------- Test get* ----------
RESULT: PASS 2018,5,21,1,2,3 year is 2018
RESULT: PASS 2018,5,21,1,2,3 month is 5 May
RESULT: PASS 2018,5,21,1,2,3 day is 21
RESULT: PASS 2018,5,21,1,2,3 hour is 1
RESULT: PASS 2018,5,21,1,2,3 minute is 2
RESULT: PASS 2018,5,21,1,2,3 second is 3
RESULT:
undefined
>
>
...
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
RESULT: ---------- Test add{Years|Months|Days|Hours|Minutes|Seconds} ----------
RESULT: PASS 2000,2,29,1,2,3 + 3 years is 2003/02/28 01:02:03
RESULT: PASS 2018,12,31,2,3,4 + 30 years is 2048/12/31 02:03:04
RESULT: PASS 2000,1,31,1,2,3 + 37 months is 2003/02/28 01:02:03
RESULT: PASS 2018,12,1,2,3,4 + 362 months is 2049/02/01 02:03:04
RESULT: PASS 2017,1,31,1,2,3 + 37,532 days is 2119/11/05 01:02:03
RESULT: PASS 2017,1,31,1,2,3 + 900,768 hours is 2119/11/05 01:02:03
RESULT: PASS 2017,1,31,1,2,3 + 781,920 minutes is 2018/07/28 01:02:03
RESULT: PASS 2017,1,31,1,2,3 + 461,548,800 seconds is 2031/09/17 01:02:03
RESULT:
undefined
>
>
...
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
...
...
......
......
...
...
RESULT: ---------- Test sub{Years|Months|Days|Hours|Minutes|Seconds} ----------
RESULT: PASS 2000,2,29,1,2,3 - 3 years is 1997/02/28 01:02:03
RESULT: PASS 2000,2,29,1,2,3 - 37 months is 1997/01/29 01:02:03
RESULT: PASS 2013,1,1,1,2,3 - 3,756 days is 2002/09/20 01:02:03
RESULT: PASS 2013,1,1,1,2,3 - 3,756 * 24 hours is 2002/09/20 01:02:03
RESULT: PASS 2015,7,15,1,2,3 - 223,776 hours is 1990/01/03 01:02:03
RESULT: PASS 2018,3,1,2,3,4 - 21,600,000 minutes is 1977/02/04 02:03:04
RESULT: PASS 2020,3,19,3,4,5 - 788,227,200 seconds is 1995/03/28 03:04:05
RESULT:
undefined
>
>
...
...
...
...
...
...
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
......
......
...
...
RESULT: ---------- Test diff{Years|Months|Days|Hours|Minutes|Seconds} ----------
RESULT: fromTimestamp=1508547723 2017,10,21,1,2,3
RESULT: toTimestamp=1563422706 2019,7,18,4,5,6
RESULT: PASS 2017,10,21,1,2,3 to 2019,7,18,4,5,6 has 2 years diff
RESULT: PASS 2017,10,21,1,2,3 to 2019,7,18,4,5,6 has 21 months diff
RESULT: PASS 2017,10,21,1,2,3 to 2019,7,18,4,5,6 has 635 days diff
RESULT: PASS 2017,10,21,1,2,3 to 2019,7,18,4,5,6 has 15,243 hours diff
RESULT: PASS 2017,10,21,1,2,3 to 2019,7,18,4,5,6 has 914,583 minutes diff
RESULT: PASS 2017,10,21,1,2,3 to 2019,7,18,4,5,6 has 54,874,983 seconds diff
RESULT:
undefined
>
>
...
...
...
...
...
...
...
...
...
...
...
...
...
......
......
.........
.........
......
......
......
......
......
......
......
.........
......
......
.........
.........
.........
.........
.........
.........
......
.........
.........
.........
.........
.........
......
......
...
RESULT: ---------- Test timestampToDateTime.call(...) and timestampFromDateTime.call(...) against JavaScript Date ----------
RESULT: timestampToDateTime.call(48611)=["1970","1","1","13","30","11"]
RESULT: timestampFromDateTime.call(["1970","1","1","13","30","11"])=48611
RESULT: jsDate(48611)=1970/1/1 13:30:11
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(48611) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(32096934)=["1971","1","7","11","48","54"]
RESULT: timestampFromDateTime.call(["1971","1","7","11","48","54"])=32096934
RESULT: jsDate(32096934)=1971/1/7 11:48:54
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(32096934) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(64145254)=["1972","1","13","10","7","34"]
RESULT: timestampFromDateTime.call(["1972","1","13","10","7","34"])=64145254
RESULT: jsDate(64145254)=1972/1/13 10:7:34
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(64145254) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(95729869)=["1973","1","12","23","37","49"]
RESULT: timestampFromDateTime.call(["1973","1","12","23","37","49"])=95729869
RESULT: jsDate(95729869)=1973/1/12 23:37:49
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(95729869) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(127778192)=["1974","1","18","21","56","32"]
RESULT: timestampFromDateTime.call(["1974","1","18","21","56","32"])=127778192
RESULT: jsDate(127778192)=1974/1/18 21:56:32
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(127778192) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(159826516)=["1975","1","24","20","15","16"]
RESULT: timestampFromDateTime.call(["1975","1","24","20","15","16"])=159826516
RESULT: jsDate(159826516)=1975/1/24 20:15:16
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(159826516) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(191411131)=["1976","1","25","9","45","31"]
RESULT: timestampFromDateTime.call(["1976","1","25","9","45","31"])=191411131
RESULT: jsDate(191411131)=1976/1/25 9:45:31
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(191411131) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(223459454)=["1977","1","30","8","4","14"]
RESULT: timestampFromDateTime.call(["1977","1","30","8","4","14"])=223459454
RESULT: jsDate(223459454)=1977/1/30 8:4:14
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(223459454) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(255507778)=["1978","2","5","6","22","58"]
RESULT: timestampFromDateTime.call(["1978","2","5","6","22","58"])=255507778
RESULT: jsDate(255507778)=1978/2/5 6:22:58
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(255507778) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(287092393)=["1979","2","5","19","53","13"]
RESULT: timestampFromDateTime.call(["1979","2","5","19","53","13"])=287092393
RESULT: jsDate(287092393)=1979/2/5 19:53:13
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(287092393) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(319140716)=["1980","2","11","18","11","56"]
RESULT: timestampFromDateTime.call(["1980","2","11","18","11","56"])=319140716
RESULT: jsDate(319140716)=1980/2/11 18:11:56
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(319140716) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(351189040)=["1981","2","16","16","30","40"]
RESULT: timestampFromDateTime.call(["1981","2","16","16","30","40"])=351189040
RESULT: jsDate(351189040)=1981/2/16 16:30:40
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(351189040) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(382773655)=["1982","2","17","6","0","55"]
RESULT: timestampFromDateTime.call(["1982","2","17","6","0","55"])=382773655
RESULT: jsDate(382773655)=1982/2/17 6:0:55
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(382773655) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(414821978)=["1983","2","23","4","19","38"]
RESULT: timestampFromDateTime.call(["1983","2","23","4","19","38"])=414821978
RESULT: jsDate(414821978)=1983/2/23 4:19:38
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(414821978) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(446870302)=["1984","2","29","2","38","22"]
RESULT: timestampFromDateTime.call(["1984","2","29","2","38","22"])=446870302
RESULT: jsDate(446870302)=1984/2/29 2:38:22
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(446870302) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(478454917)=["1985","2","28","16","8","37"]
RESULT: timestampFromDateTime.call(["1985","2","28","16","8","37"])=478454917
RESULT: jsDate(478454917)=1985/2/28 16:8:37
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(478454917) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(510503240)=["1986","3","6","14","27","20"]
RESULT: timestampFromDateTime.call(["1986","3","6","14","27","20"])=510503240
RESULT: jsDate(510503240)=1986/3/6 14:27:20
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(510503240) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(542551564)=["1987","3","12","12","46","4"]
RESULT: timestampFromDateTime.call(["1987","3","12","12","46","4"])=542551564
RESULT: jsDate(542551564)=1987/3/12 12:46:4
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(542551564) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(574136179)=["1988","3","12","2","16","19"]
RESULT: timestampFromDateTime.call(["1988","3","12","2","16","19"])=574136179
RESULT: jsDate(574136179)=1988/3/12 2:16:19
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(574136179) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(606184502)=["1989","3","18","0","35","2"]
RESULT: timestampFromDateTime.call(["1989","3","18","0","35","2"])=606184502
RESULT: jsDate(606184502)=1989/3/18 0:35:2
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(606184502) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(638232826)=["1990","3","23","22","53","46"]
RESULT: timestampFromDateTime.call(["1990","3","23","22","53","46"])=638232826
RESULT: jsDate(638232826)=1990/3/23 22:53:46
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(638232826) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(669817441)=["1991","3","24","12","24","1"]
RESULT: timestampFromDateTime.call(["1991","3","24","12","24","1"])=669817441
RESULT: jsDate(669817441)=1991/3/24 12:24:1
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(669817441) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(701865764)=["1992","3","29","10","42","44"]
RESULT: timestampFromDateTime.call(["1992","3","29","10","42","44"])=701865764
RESULT: jsDate(701865764)=1992/3/29 10:42:44
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(701865764) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(733914088)=["1993","4","4","9","1","28"]
RESULT: timestampFromDateTime.call(["1993","4","4","9","1","28"])=733914088
RESULT: jsDate(733914088)=1993/4/4 9:1:28
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(733914088) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(765498703)=["1994","4","4","22","31","43"]
RESULT: timestampFromDateTime.call(["1994","4","4","22","31","43"])=765498703
RESULT: jsDate(765498703)=1994/4/4 22:31:43
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(765498703) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(797547026)=["1995","4","10","20","50","26"]
RESULT: timestampFromDateTime.call(["1995","4","10","20","50","26"])=797547026
RESULT: jsDate(797547026)=1995/4/10 20:50:26
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(797547026) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(829595350)=["1996","4","15","19","9","10"]
RESULT: timestampFromDateTime.call(["1996","4","15","19","9","10"])=829595350
RESULT: jsDate(829595350)=1996/4/15 19:9:10
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(829595350) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(861179965)=["1997","4","16","8","39","25"]
RESULT: timestampFromDateTime.call(["1997","4","16","8","39","25"])=861179965
RESULT: jsDate(861179965)=1997/4/16 8:39:25
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(861179965) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(893228288)=["1998","4","22","6","58","8"]
RESULT: timestampFromDateTime.call(["1998","4","22","6","58","8"])=893228288
RESULT: jsDate(893228288)=1998/4/22 6:58:8
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(893228288) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(925276612)=["1999","4","28","5","16","52"]
RESULT: timestampFromDateTime.call(["1999","4","28","5","16","52"])=925276612
RESULT: jsDate(925276612)=1999/4/28 5:16:52
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(925276612) => timestampFromDateTime.call(...) matches
RESULT:
RESULT: timestampToDateTime.call(956861227)=["2000","4","27","18","47","7"]
RESULT: timestampFromDateTime.call(["2000","4","27","18","47","7"])=956861227
RESULT: jsDate(956861227)=2000/4/27 18:47:7
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime.call(956861227) => timestampFromDateTime.call(...) matches
RESULT: