<p>there is a <code>currentTime</code> function in <code>Plutus.Contract.Request</code> with the signature</p>
<pre><code>currentTime :: forall w s e. AsContractError e =&gt; Contract w s e POSIXTime
</code></pre>

CC BY-SA 4.0
2021-11-12T01:14:52.857Z
2021-11-12T01:14:52.857Z
Mason
<p>I don't see any way to use <code>IO</code> in <code>Contract</code> and I don't see any functions for getting a <code>POSIXTime</code> from the things I can get within <code>Contract</code>.</p>

<plutus><smart-contract>
How can I get a POSIXTime in the Contract monad?
# How can I get a POSIXTime in the Contract monad?

(Asked by: username_0 on 2021-11-12)

I don't see any way to use `IO` in `Contract` and I don't see any functions for getting a `POSIXTime` from the things I can get within `Contract`.

**Tags:** plutus, smart-contract

---

## 1 answers

### Answer by username_0 on 2021-11-12. Score: 2 | Accepted answer

there is a currentTime function in Plutus.Contract.Request with the signature
currentTime :: forall w s e. AsContractError e => Contract w s e POSIXTime


---

