<p>The timestamp of a block must be higher than the median of the timestamps of the past 11 blocks. It also needs to be less than 2 hours in the future (wall clock) at the time of validation.</p>
<p>Note how a block invalid by the second rule can become valid eventually.</p>

CC BY-SA 4.0
2024-02-26T10:18:46.990Z
So what you are saying is there can be a recent block whose timestamp has a previous date than the latest block?
Efe
CC BY-SA 4.0
2024-02-26T10:21:25.117Z
Yes, as long as its timestamp is higher than the median of the past 11 blocks.
Antoine Poinsot
CC BY-SA 4.0
2024-02-26T09:55:18.460Z
2024-02-26T09:55:18.460Z
Antoine Poinsot
<p>As a miner, what happens if I propogate a block with a future timestamp, or yesterday's timestamp? What determines the block time? Can I just give any time here or is it okay to change it with 1-2 seconds?</p>
<p><a href="https://i.sstatic.net/5kNvH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5kNvH.png" alt="enter image description here" /></a></p>

<block><timestamp><time>
What determines the block's timestamp?
Efe
# What determines the block's timestamp?

(Asked by: username_0 on 2024-02-26)

As a miner, what happens if I propogate a block with a future timestamp, or yesterday's timestamp? What determines the block time? Can I just give any time here or is it okay to change it with 1-2 seconds?

[![enter image description here](https://i.sstatic.net/5kNvH.png)](https://i.sstatic.net/5kNvH.png)

**Tags:** block, timestamp, time


---

## 1 answers

### Answer by username_1 on 2024-02-26. Score: 1 | Accepted answer

The timestamp of a block must be higher than the median of the timestamps of the past 11 blocks. It also needs to be less than 2 hours in the future (wall clock) at the time of validation.

Note how a block invalid by the second rule can become valid eventually.

> **Comments:**
> **username_0**: So what you are saying is there can be a recent block whose timestamp has a previous date than the latest block?  
> **username_1**: Yes, as long as its timestamp is higher than the median of the past 11 blocks.  

---

