hxxe/tools

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.