unix timestamp converter

block.timestamp ↔ date, durations in seconds, relative time.

timestamp → date

unix timestampseconds, like block.timestamp
try

date → timestamp

date and timeyour local time zone

duration → seconds

weeks
days
hours
minutes
seconds
seconds
2592000
solidity
4 weeks + 2 days

about this tool

Convert Unix timestamps (block.timestamp) to dates and back, in UTC and your local time. Turn durations into seconds for deadlines, vesting and timelocks.

good to know

seconds or milliseconds?

block.timestamp is in seconds. javascript Date.now() is milliseconds. 13 digits means milliseconds, and it is detected for you.

can i trust block.timestamp?

to within a few seconds. on ethereum it is slot time, but never use it as randomness or for sub-minute precision.