File tree 2 files changed +45
-2
lines changed
src/main/java/io/api/etherscan/model
2 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1
- .idea /
1
+ # Compiled class files
2
+ * .class
3
+
4
+ # Log file
5
+ * .log
6
+ ** /.log
7
+
8
+ # IntelliJ
2
9
* .iml
10
+ /.idea
11
+
12
+ # Package Files #
13
+ * .jar
14
+ * .war
15
+ * .nar
16
+ * .ear
17
+ * .zip
18
+ * .tar.gz
19
+ * .rar
20
+
21
+ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
22
+ hs_err_pid *
23
+
24
+ # other
25
+ /bin /
26
+ /.classpath
27
+ /.project
28
+ /target /
29
+ /out /
30
+ /.DS_Store
31
+ /.settings /
32
+
Original file line number Diff line number Diff line change @@ -60,12 +60,25 @@ public LocalDateTime getTimeStamp() {
60
60
if (_timeStamp == null && !BasicUtils .isEmpty (timeStamp )) {
61
61
long formatted = (timeStamp .charAt (0 ) == '0' && timeStamp .charAt (1 ) == 'x' )
62
62
? BasicUtils .parseHex (timeStamp ).longValue ()
63
- : Long .valueOf (timeStamp );
63
+ : Long .parseLong (timeStamp );
64
64
_timeStamp = LocalDateTime .ofEpochSecond (formatted , 0 , ZoneOffset .UTC );
65
65
}
66
66
return _timeStamp ;
67
67
}
68
68
69
+ /**
70
+ *
71
+ * @return
72
+ */
73
+ public Long getTimeStampAsMillis () {
74
+ if (BasicUtils .isEmpty (timeStamp )) {
75
+ return null ;
76
+ }
77
+ return (timeStamp .charAt (0 ) == '0' && timeStamp .charAt (1 ) == 'x' )
78
+ ? BasicUtils .parseHex (timeStamp ).longValue ()
79
+ : Long .parseLong (timeStamp ) * 1000 ;
80
+ }
81
+
69
82
public String getData () {
70
83
return data ;
71
84
}
You can’t perform that action at this time.
0 commit comments