Lesson 9 - Why do we use block.timestamp instead of now ? #1954
demirbey05
started this conversation in
General
Replies: 2 comments 1 reply
-
Hi @demirbey05, some time ago they were aliases: In version 0.7.0, the alias now (for So everyone should use just I hope this clarifies this :) Cheers! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think using block.timestamp cant iterate process exactly in the interval, for getting miner's block verification, we may wait for more than interval or less than interval, but we cant get exact interval time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Lesson 9 for implementing the automation and keep track of the time, we used
block.timestamp
, but it is the time where the block is mined , it is the not time that last transaction is executed. We can usenow
the keep track of the time. What is the purpose of usingblock.timestamp
?Beta Was this translation helpful? Give feedback.
All reactions