Skip to main content

I believe what you're looking for is nowblock.timestamp:

chainStartTime = now;block.timestamp;

now is an alias for Previously, there was block.timestampnow, so the above is equivalent to:but it has been deprecated

chainStartTime = block.timestamp;

I believe what you're looking for is now:

chainStartTime = now;

now is an alias for block.timestamp, so the above is equivalent to:

chainStartTime = block.timestamp;

I believe what you're looking for is block.timestamp:

chainStartTime = block.timestamp;

Previously, there was now, but it has been deprecated

Source Link
Serj Sagan
  • 429
  • 1
  • 6
  • 14

I believe what you're looking for is now:

chainStartTime = now;

now is an alias for block.timestamp, so the above is equivalent to:

chainStartTime = block.timestamp;