Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

What are some practical considerations for leap seconds?

From the solidity docs on time units: Take care if you perform calendar calculations using these units, because not every year equals 365 days and not even every day has 24 hours because of leap ...
2
votes
1answer
22 views

Can the block number be set back in ganache?

I know about tools like ganache-time-traveler that let you advance the block number. But is it possible to go back to a lower value?
0
votes
1answer
25 views

Is there any library to estimate timestamp of future block?

I am in need of a library that estimates a date or some sort of timestamp when fed with a future block number (on mainnet or any major testnet). For instance, https://etherscan.io/block/countdown/...
0
votes
1answer
24 views

How do I add 7 years to a current time expressed as a block.timestamp?

Being new to solidity, I find the docs on the Internet very confusing. I simply want to add 7 years to a uint timeInSevenYearsFromNow = (block.timestamp).add(????); What is the value of ???? and ...
0
votes
0answers
112 views

SocketTimeoutException timeout In Java Web3j

Im developing some test in a little project with Web3j. I have a little for that loop generating new accounts. Doing single request works fine. The issue appear when I try to make more than X ...
0
votes
0answers
24 views

Time in blockchain and HTML

I'm trying to get time once data is submitted off-chain, since only way to get on-chain is via now to get the block time. Off-chain I'm using "document.getElementById("demo").innerHTML = Date()" to ...
0
votes
1answer
46 views

In truffle5, how to manipulate time with evm_increaseTime?

I am using truffle 5 and ganache-cli. I've imported increaseTime as import increaseTime from './helper/increaseTime'; and the increaseTime.js file is like this export default function increaseTime(...