Get seconds

Get seconds on Time

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Returns the seconds since or until a timestamp, relative to block time. The chosen direction subtracts in that order from the current block timestamp, returning a duration. Reach for it to require a minimum interval has passed since a stored last-run time, to compute time to maturity for a rate calculation, or to scale an accrual by elapsed seconds.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More plugs on Base

Dollar-cost average on Base · 4 plugs

Posts · 1

More on Time · 7