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 774

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

22 votes
Accepted

How do you work with Date and time on Ethereum platform

The block includes a timestamp (in seconds since 1970), which your contract code can refer to by the name block.timestamp. … The timestamp is set by the miner who mines the block and nobody can be sure at what time they really mined it, so it may not be exactly accurate. …
Edmund Edgar's user avatar
  • 16.9k
4 votes

How time difference can be calculated by block.number and how it is different from block.tim...

The timestamp can be easily gamed over short intervals. … If the time period is long, and your goal is security rather than feeling like you're living in a science fiction novel, use a timestamp. …
Edmund Edgar's user avatar
  • 16.9k
5 votes

How to do a contract with expire time?

See this discussion on how much you should worry about miner manipulation: Solidity: Timestamp dependency, is it possible to do safely? …
Edmund Edgar's user avatar
  • 16.9k
17 votes
Accepted

Is Solidity block.number more secure than timestamp?

The block number will always be correct by definition: It's number x in the chain, because it's chained on top of x-1. However, as you say block.timestamp can be gamed a little bit - or with the coop …
Edmund Edgar's user avatar
  • 16.9k