Timestamp
Last Updated: November 19, 2026
A Timestamp in blockchain refers to the exact date and time a transaction or block is added to the blockchain, serving as a verifiable record of when an event occurred.
How Timestamps Work
Each block in a blockchain contains a timestamp set by the network or miner that adds the block. This time data helps organize the blockchain chronologically and plays a role in validating transaction order and enforcing consensus rules. Timestamps can also be used in smart contracts and other time-sensitive operations.
In Bitcoin, the timestamp is a 4-byte field in the block header, next to the nonce and the previous block hash. It counts seconds since January 1, 1970 (Unix time). Because a miner chooses the value, the network does not trust it blindly. It checks it against two rules instead.
The Two Bitcoin Timestamp Rules
First, a block time must be strictly greater than the median time of the previous 11 blocks, often called the median time past. Second, full nodes reject headers more than two hours in the future according to their own clock. Both rules come from the Bitcoin developer reference.
Since Bitcoin Core 27.0, released April 2, 2024, the software no longer adjusts its clock using the times reported by peers in consensus code. Its release notes say network-adjusted time was replaced with the computer’s own system time.
The result is a loose clock. Block times only need to move forward on average, so a block can show an earlier time than the block before it. Time-based lock rules in Bitcoin therefore use the median time past rather than a single block’s timestamp, a change that took effect in 2016.
A November 2026 Example
Bitcoin block 976,170 was mined with a timestamp of 18:36:37 UTC on November 16, 2026, according to mempool.space. The median of the 11 blocks before it, 976,159 to 976,169, was 17:37:11 UTC. The new block passed the first rule easily, almost an hour later than that median.
The same data shows how uneven the spacing is. Block 976,164 was stamped 17:37:11 UTC and block 976,165 came at 18:07:33 UTC, a gap of about 30 minutes, while blocks 976,159 and 976,160 were only 7 seconds apart. Ten minutes is only the average target.
Timestamps on Other Chains
Ethereum’s proof-of-stake chain works differently. Time is split into 12-second slots, and each block’s timestamp is fixed by its slot, so validators cannot pick a convenient time. Smart contracts can read the timestamp, for example to unlock tokens after a set date.
Why Timestamps Matter
Timestamps ensure transparency, order, and auditability in blockchain systems. They help track the sequence of events, prevent double-spending, and support time-based triggers in applications like staking, voting, or token vesting. Accurate timestamps are essential for trust and reliability in decentralized networks.
They also feed Bitcoin’s difficulty adjustment, which compares block times across every 2,016 blocks. That is why researchers worry about timestamp tricks, such as the timewarp attack that the BIP 54 cleanup proposal aims to close.
Where to Check
Any Bitcoin block explorer shows a block’s timestamp and median time next to its height and hash. Our guide to using a Bitcoin blockchain explorer shows where these fields sit on a block page.
Limits
A block timestamp is a miner’s claim checked within wide bounds, not an atomic clock. It can be off by many minutes, so it should not be read as the exact moment a payment happened. Timestamps also prove only that data existed by a certain time, not who created it.
Timestamps and Time Locks
Bitcoin lets a transaction wait until a set time before it can be confirmed. The nLockTime field holds either a block height or a time. Values below 500,000,000 count as block heights, while larger values count as Unix time.
BIP 65, active since December 2015, added a script check called OP_CHECKLOCKTIMEVERIFY that locks coins until a chosen height or time. As described above, time-based locks are measured against the median time past, which makes them harder for a single miner to game.
The Year 2106 Limit
Bitcoin stores block timestamps as an unsigned 32-bit number of seconds. That field runs out on February 7, 2106. Developers have discussed fixes well ahead of that date, and it has no effect on Bitcoin today. Many older computer systems face a similar limit in 2038, when signed 32-bit time values run out.
Frequently Asked Questions
What is median time past in Bitcoin?
It is the middle value of the timestamps of the last 11 blocks. A new block must carry a time later than this median, which stops a miner from dragging the clock backward. Time locks in Bitcoin also measure against the median time past, so a single miner cannot speed them up with one inflated timestamp.
Can a Bitcoin block have an earlier time than the block before it?
Yes. The rules only require a time later than the median of the previous 11 blocks and no more than two hours ahead of a node’s clock. Within those limits, a block can show a slightly earlier time than its parent. The chain order comes from block hashes, not from the timestamps themselves.
How accurate are blockchain timestamps?
They are approximate. On Bitcoin, miners set the time, so it can be off by minutes and still be valid. Ethereum fixes each block’s time to its 12-second slot, which makes it more regular. Neither should be treated as a precise legal or audit clock without other evidence, such as exchange or bank records.
Can smart contracts trust block timestamps?
Only within limits. On Ethereum, each block’s time is fixed by its 12-second slot, so a validator cannot pick an arbitrary value. Smart contracts can safely use it for rough rules, such as unlocking tokens after a date. It should not be used as a source of randomness, because the value is known in advance.
Data sources: Bitcoin developer reference (block header time rules), Bitcoin Core 27.0 release notes (April 2, 2024), mempool.space (blocks 976,159 to 976,171, read 19:37 UTC, November 16, 2026); BIP 65 (OP_CHECKLOCKTIMEVERIFY) and the Bitcoin developer reference (nLockTime), read November 19, 2026.