Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 620

Questions related to the timestamp value of a block, or the use of Ethereum in timestamping.

5 votes
Accepted

Is "now" UTC time in Solidity?

The miners use the UTC time as the block timestamp. …
Mikko Ohtamaa's user avatar
1 vote

Slackness issue and time in smart contracts

now() is a value that the miner of the particular block gives on the block. now() is already a construct in Solidity language. Ethereum protocol gives some guarantees regarding the block skew of now( …
Mikko Ohtamaa's user avatar
2 votes
Accepted

Avoid using block.timestamp

This linter advice is incorrect and in practice block.timestamp is safe. The risks of using block numbers are higher because the block production rate is not deterministic. The linter advice is based …
Mikko Ohtamaa's user avatar
1 vote

using block.blockhash instead of block.timestamp for 30 minutes

The usage of block.timestamp has good security properties and you might have misunderstood something. Unless you know what you are doing please stick to block.timestamp.
Mikko Ohtamaa's user avatar
1 vote
Accepted

Ethereum block timestamp

Is the timestamp of a block referring to the time that block is created or when it's mined by a miner? Yes. the block number I'am printing is referring to the latest block that was mined? … f I am correct, why if I fetch that block Timestamp and I compare it with the current Unix Time they are different? …
Mikko Ohtamaa's user avatar
3 votes
Accepted

By what duration can a miner manipulate block.timestamp?

There is no written rule on this, miners and full nodes can set themselves what kind of block timestamp skew they tolerate. In practice, there has not been any notable timestamp skew ever. …
Mikko Ohtamaa's user avatar