We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670ce91 commit 4a570d2Copy full SHA for 4a570d2
src/main/java/io/api/etherscan/model/Log.java
@@ -67,16 +67,18 @@ public LocalDateTime getTimeStamp() {
67
}
68
69
/**
70
- *
71
- * @return
+ * Return the "timeStamp" field of the event record as a long-int representing the milliseconds
+ * since the Unix epoch (1970年01月01日 00:00:00).
72
+ * @return milliseconds between Unix epoch and `timeStamp`. If field is empty or null, returns null
73
*/
74
public Long getTimeStampAsMillis() {
75
if (BasicUtils.isEmpty(timeStamp)) {
76
return null;
77
- return (timeStamp.charAt(0) == '0' && timeStamp.charAt(1) == 'x')
78
+ longtsSecs = (timeStamp.charAt(0) == '0' && timeStamp.charAt(1) == 'x')
79
? BasicUtils.parseHex(timeStamp).longValue()
- : Long.parseLong(timeStamp) * 1000;
80
+ : Long.parseLong(timeStamp);
81
+ return tsSecs * 1000;
82
83
84
public String getData() {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments