diff --git a/AbhikalpArya/Data/data4.json b/AbhikalpArya/Data/data4.json index aa25bf9..a553258 100644 --- a/AbhikalpArya/Data/data4.json +++ b/AbhikalpArya/Data/data4.json @@ -1 +1 @@ -["30075598020",1645881678497] \ No newline at end of file +["30075598020","4:57:56 pm"] diff --git a/AbhikalpArya/scripts/etherscan.js b/AbhikalpArya/scripts/etherscan.js index 85755ad..6a8d392 100644 --- a/AbhikalpArya/scripts/etherscan.js +++ b/AbhikalpArya/scripts/etherscan.js @@ -42,11 +42,11 @@ web3.eth.getBlockTransactionCount("latest").then((res) => { // Task 4 web3.eth.getGasPrice().then((res) => { const currentDate = new Date(); - let timestamp = currentDate.getTime(); + let timestamp = currentDate.toLocaleTimeString(); let data = JSON.stringify([res, timestamp]); // In JavaScript, a time stamp is the number of milliseconds that have passed since January 1, 1970. fs.writeFile('../AbhikalpArya/Data/data4.json', data, function(e) { if (e) return console.log(e); console.log('Data > data4.json'); }) -}) \ No newline at end of file +})