<p>You can use either slots or regular time, see <a href="https://playground.plutus.iohkdev.io/doc/haddock/plutus-contract/html/Plutus-Contract.html#g:2" rel="nofollow noreferrer">https://playground.plutus.iohkdev.io/doc/haddock/plutus-contract/html/Plutus-Contract.html#g:2</a></p>

CC BY-SA 4.0
2022-01-25T10:35:58.550Z
2022-01-25T10:35:58.550Z
Sjoerd Visscher
<p>Imagine there is a bidding smart contract and i have a maximum time limit set for it. How would i count time within this smart contract in cardano ? Can i get the slotIds and use that as proxy count of time or is there any other way to read time within cardano blockchain ?</p>

<cardano-node>
How does one count time within a smart contract
# How does one count time within a smart contract

(Asked by: username_0 on 2022-01-23)

Imagine there is a bidding smart contract and i have a maximum time limit set for it. How would i count time within this smart contract in cardano ? Can i get the slotIds and use that as proxy count of time or is there any other way to read time within cardano blockchain ?

**Tags:** cardano-node

---

## 1 answers

### Answer by username_1 on 2022-01-25. Score: 1

You can use either slots or regular time, see <https://playground.plutus.iohkdev.io/doc/haddock/plutus-contract/html/Plutus-Contract.html#g:2>


---

