I'm looking to use block.timestamp
in one of my contracts and I want to know whether the block.timestamp
is seconds like in Python or milliseconds like in Java or some other value?
Also, is it safe to use block.timestamp
to check if 30 days is past since the last updated time or something like that?
blocks.timestamp
is a Unix time stamp. So, it has the complete information about the date, hours, minutes, and seconds (in UTC) when the block was created.