Konubinix' opinionated web of thoughts

Ethereum: How to Get Current Time in Ms?

Fleeting

ethereum

only way i know how you can get the current timestamp on the blockchain is by using the provider getBlockNumber() function to get the latest block number then use the provider getBlock() function to get details around the latest block. Finally when u have the block , the block object would have timestamp property which gives u the current time on the blockchain in seconds.

https://ethereum.stackexchange.com/questions/136640/qa-how-to-get-current-time-in-ms