This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
forked from bokkypoobah/BokkyPooBahsDateTimeLibrary
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test1output.txt
3061 lines (3057 loc) · 141 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 = '1550076725' 'Thu Feb 14 03:52:05 2019'
START_DATE = '1550076770' 'Thu Feb 14 03:52:50 2019'
END_DATE = '1550076845' 'Thu Feb 14 03:54:05 2019'
--- Differences ../contracts/BokkyPooBahsDateTimeLibrary.sol BokkyPooBahsDateTimeLibrary.sol ---
--- Differences ../contracts/TestDateTime.sol TestDateTime.sol ---
solc, the solidity compiler commandline interface
Version: 0.5.4+commit.9549d8ff.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.8.22-stable-7fa3509e/darwin-amd64/go1.11.5
coinbase: 0xa00af22d07c87d96eeeb0ed583f8f6ac7812827e
at block: 3 (Thu, 14 Feb 2019 03:52:05 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
>
>
undefined
>
undefined
>
undefined
>
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.001198016000000000 0.000000000000000000 Account #0 - Miner
RESULT: 1 0xa11aae29840fbb5c86e6fd4cf809eba183aef433 -0.001198016000000000 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=74876 costETH=0.001198016 costUSD=0.80951139136 @ ETH/USD=675.71 gasPrice=16 gwei block=28 txIx=0 txId=0xbc383517b572e939da6cc6501ec53df222b46cd082c6afb350b31adfefca7140 @ 1550076750 Wed, 13 Feb 2019 16:52:30 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=[{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_hours","type":"uint256"}],"name":"subHours","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"fromTimestamp","type":"uint256"},{"name":"toTimestamp","type":"uint256"}],"name":"diffMinutes","outputs":[{"name":"_minutes","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getDaysInMonth","outputs":[{"name":"daysInMonth","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"nextYear","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"},{"name":"day","type":"uint256"}],"name":"isValidDate","outputs":[{"name":"valid","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"},{"name":"day","type":"uint256"}],"name":"timestampFromDate","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getDayOfWeek","outputs":[{"name":"dayOfWeek","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"fromTimestamp","type":"uint256"},{"name":"toTimestamp","type":"uint256"}],"name":"diffHours","outputs":[{"name":"_hours","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"},{"name":"day","type":"uint256"},{"name":"hour","type":"uint256"},{"name":"minute","type":"uint256"},{"name":"second","type":"uint256"}],"name":"isValidDateTime","outputs":[{"name":"valid","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getHour","outputs":[{"name":"hour","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"}],"name":"_getDaysInMonth","outputs":[{"name":"daysInMonth","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_months","type":"uint256"}],"name":"addMonths","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"isWeekEnd","outputs":[{"name":"weekEnd","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_years","type":"uint256"}],"name":"addYears","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_years","type":"uint256"}],"name":"subYears","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_hours","type":"uint256"}],"name":"addHours","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"},{"name":"day","type":"uint256"},{"name":"hour","type":"uint256"},{"name":"minute","type":"uint256"},{"name":"second","type":"uint256"}],"name":"timestampFromDateTime","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"fromTimestamp","type":"uint256"},{"name":"toTimestamp","type":"uint256"}],"name":"diffSeconds","outputs":[{"name":"_seconds","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getDay","outputs":[{"name":"day","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_days","type":"uint256"}],"name":"addDays","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"fromTimestamp","type":"uint256"},{"name":"toTimestamp","type":"uint256"}],"name":"diffMonths","outputs":[{"name":"_months","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_minutes","type":"uint256"}],"name":"addMinutes","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getSecond","outputs":[{"name":"second","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_seconds","type":"uint256"}],"name":"addSeconds","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getYear","outputs":[{"name":"year","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_minutes","type":"uint256"}],"name":"subMinutes","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getMonth","outputs":[{"name":"month","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_months","type":"uint256"}],"name":"subMonths","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"year","type":"uint256"}],"name":"_isLeapYear","outputs":[{"name":"leapYear","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"isLeapYear","outputs":[{"name":"leapYear","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_days","type":"uint256"}],"name":"subDays","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"fromTimestamp","type":"uint256"},{"name":"toTimestamp","type":"uint256"}],"name":"diffDays","outputs":[{"name":"_days","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"isWeekDay","outputs":[{"name":"weekDay","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"timestampToDate","outputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"},{"name":"day","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"timestampToDateTime","outputs":[{"name":"year","type":"uint256"},{"name":"month","type":"uint256"},{"name":"day","type":"uint256"},{"name":"hour","type":"uint256"},{"name":"minute","type":"uint256"},{"name":"second","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"},{"name":"_seconds","type":"uint256"}],"name":"subSeconds","outputs":[{"name":"newTimestamp","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[],"name":"test","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"getMinute","outputs":[{"name":"minute","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"fromTimestamp","type":"uint256"},{"name":"toTimestamp","type":"uint256"}],"name":"diffYears","outputs":[{"name":"_years","type":"uint256"}],"payable":false,"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.020671056000000000 0.000000000000000000 Account #0 - Miner
RESULT: 1 0xa11aae29840fbb5c86e6fd4cf809eba183aef433 -0.020671056000000000 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=1217065 costETH=0.01947304 costUSD=13.1581278584 @ ETH/USD=675.71 gasPrice=16 gwei block=30 txIx=0 txId=0x58f294754e1d18602292281b62829bd034702a925f858240fe3b80a8409a91bf @ 1550076752 Wed, 13 Feb 2019 16:52:32 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 ----------
RESULT: PASS testDateTime.isValidDate(1969, 1, 1) is false
RESULT: PASS testDateTime.isValidDate(1970, 1, 1) is true
RESULT: PASS testDateTime.isValidDate(2000, 2, 29) is true
RESULT: PASS testDateTime.isValidDate(2001, 2, 29) is false
RESULT: PASS testDateTime.isValidDate(2001, 0, 1) is false
RESULT: PASS testDateTime.isValidDate(2001, 1, 0) is false
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 0, 0, 0) is true
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 1, 1, 1) is true
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 23, 1, 1) is true
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 24, 1, 1) is false
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 1, 59, 1) is true
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 1, 60, 1) is false
RESULT: PASS testDateTime.isValidDateTime(2000, 2, 29, 1, 1, 59) is true
RESULT: PASS testDateTime.isValidDateTime(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(...) and timestampFromDateTime(...) against JavaScript Date ----------
RESULT: timestampToDateTime(48611)=["1970","1","1","13","30","11"]
RESULT: timestampFromDateTime(["1970","1","1","13","30","11"])=48611
RESULT: jsDate(48611)=1970/1/1 13:30:11
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(48611) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(32096934)=["1971","1","7","11","48","54"]
RESULT: timestampFromDateTime(["1971","1","7","11","48","54"])=32096934
RESULT: jsDate(32096934)=1971/1/7 11:48:54
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(32096934) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(64145254)=["1972","1","13","10","7","34"]
RESULT: timestampFromDateTime(["1972","1","13","10","7","34"])=64145254
RESULT: jsDate(64145254)=1972/1/13 10:7:34
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(64145254) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(95729869)=["1973","1","12","23","37","49"]
RESULT: timestampFromDateTime(["1973","1","12","23","37","49"])=95729869
RESULT: jsDate(95729869)=1973/1/12 23:37:49
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(95729869) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(127778192)=["1974","1","18","21","56","32"]
RESULT: timestampFromDateTime(["1974","1","18","21","56","32"])=127778192
RESULT: jsDate(127778192)=1974/1/18 21:56:32
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(127778192) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(159826516)=["1975","1","24","20","15","16"]
RESULT: timestampFromDateTime(["1975","1","24","20","15","16"])=159826516
RESULT: jsDate(159826516)=1975/1/24 20:15:16
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(159826516) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(191411131)=["1976","1","25","9","45","31"]
RESULT: timestampFromDateTime(["1976","1","25","9","45","31"])=191411131
RESULT: jsDate(191411131)=1976/1/25 9:45:31
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(191411131) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(223459454)=["1977","1","30","8","4","14"]
RESULT: timestampFromDateTime(["1977","1","30","8","4","14"])=223459454
RESULT: jsDate(223459454)=1977/1/30 8:4:14
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(223459454) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(255507778)=["1978","2","5","6","22","58"]
RESULT: timestampFromDateTime(["1978","2","5","6","22","58"])=255507778
RESULT: jsDate(255507778)=1978/2/5 6:22:58
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(255507778) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(287092393)=["1979","2","5","19","53","13"]
RESULT: timestampFromDateTime(["1979","2","5","19","53","13"])=287092393
RESULT: jsDate(287092393)=1979/2/5 19:53:13
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(287092393) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(319140716)=["1980","2","11","18","11","56"]
RESULT: timestampFromDateTime(["1980","2","11","18","11","56"])=319140716
RESULT: jsDate(319140716)=1980/2/11 18:11:56
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(319140716) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(351189040)=["1981","2","16","16","30","40"]
RESULT: timestampFromDateTime(["1981","2","16","16","30","40"])=351189040
RESULT: jsDate(351189040)=1981/2/16 16:30:40
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(351189040) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(382773655)=["1982","2","17","6","0","55"]
RESULT: timestampFromDateTime(["1982","2","17","6","0","55"])=382773655
RESULT: jsDate(382773655)=1982/2/17 6:0:55
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(382773655) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(414821978)=["1983","2","23","4","19","38"]
RESULT: timestampFromDateTime(["1983","2","23","4","19","38"])=414821978
RESULT: jsDate(414821978)=1983/2/23 4:19:38
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(414821978) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(446870302)=["1984","2","29","2","38","22"]
RESULT: timestampFromDateTime(["1984","2","29","2","38","22"])=446870302
RESULT: jsDate(446870302)=1984/2/29 2:38:22
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(446870302) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(478454917)=["1985","2","28","16","8","37"]
RESULT: timestampFromDateTime(["1985","2","28","16","8","37"])=478454917
RESULT: jsDate(478454917)=1985/2/28 16:8:37
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(478454917) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(510503240)=["1986","3","6","14","27","20"]
RESULT: timestampFromDateTime(["1986","3","6","14","27","20"])=510503240
RESULT: jsDate(510503240)=1986/3/6 14:27:20
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(510503240) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(542551564)=["1987","3","12","12","46","4"]
RESULT: timestampFromDateTime(["1987","3","12","12","46","4"])=542551564
RESULT: jsDate(542551564)=1987/3/12 12:46:4
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(542551564) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(574136179)=["1988","3","12","2","16","19"]
RESULT: timestampFromDateTime(["1988","3","12","2","16","19"])=574136179
RESULT: jsDate(574136179)=1988/3/12 2:16:19
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(574136179) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(606184502)=["1989","3","18","0","35","2"]
RESULT: timestampFromDateTime(["1989","3","18","0","35","2"])=606184502
RESULT: jsDate(606184502)=1989/3/18 0:35:2
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(606184502) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(638232826)=["1990","3","23","22","53","46"]
RESULT: timestampFromDateTime(["1990","3","23","22","53","46"])=638232826
RESULT: jsDate(638232826)=1990/3/23 22:53:46
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(638232826) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(669817441)=["1991","3","24","12","24","1"]
RESULT: timestampFromDateTime(["1991","3","24","12","24","1"])=669817441
RESULT: jsDate(669817441)=1991/3/24 12:24:1
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(669817441) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(701865764)=["1992","3","29","10","42","44"]
RESULT: timestampFromDateTime(["1992","3","29","10","42","44"])=701865764
RESULT: jsDate(701865764)=1992/3/29 10:42:44
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(701865764) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(733914088)=["1993","4","4","9","1","28"]
RESULT: timestampFromDateTime(["1993","4","4","9","1","28"])=733914088
RESULT: jsDate(733914088)=1993/4/4 9:1:28
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(733914088) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(765498703)=["1994","4","4","22","31","43"]
RESULT: timestampFromDateTime(["1994","4","4","22","31","43"])=765498703
RESULT: jsDate(765498703)=1994/4/4 22:31:43
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(765498703) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(797547026)=["1995","4","10","20","50","26"]
RESULT: timestampFromDateTime(["1995","4","10","20","50","26"])=797547026
RESULT: jsDate(797547026)=1995/4/10 20:50:26
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(797547026) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(829595350)=["1996","4","15","19","9","10"]
RESULT: timestampFromDateTime(["1996","4","15","19","9","10"])=829595350
RESULT: jsDate(829595350)=1996/4/15 19:9:10
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(829595350) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(861179965)=["1997","4","16","8","39","25"]
RESULT: timestampFromDateTime(["1997","4","16","8","39","25"])=861179965
RESULT: jsDate(861179965)=1997/4/16 8:39:25
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(861179965) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(893228288)=["1998","4","22","6","58","8"]
RESULT: timestampFromDateTime(["1998","4","22","6","58","8"])=893228288
RESULT: jsDate(893228288)=1998/4/22 6:58:8
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(893228288) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(925276612)=["1999","4","28","5","16","52"]
RESULT: timestampFromDateTime(["1999","4","28","5","16","52"])=925276612
RESULT: jsDate(925276612)=1999/4/28 5:16:52
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(925276612) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(956861227)=["2000","4","27","18","47","7"]
RESULT: timestampFromDateTime(["2000","4","27","18","47","7"])=956861227
RESULT: jsDate(956861227)=2000/4/27 18:47:7
RESULT: PASS jsDate matches
RESULT: PASS timestampToDateTime(956861227) => timestampFromDateTime(...) matches
RESULT:
RESULT: timestampToDateTime(988909550)=["2001","5","3","17","5","50"]
RESULT: timestampFromDateTime(["2001","5","3","17","5","50"])=988909550
RESULT: jsDate(988909550)=2001/5/3 17:5:50