Questions tagged [posixtime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Whats the function to get the current time in Plutus?

Im using the time module in the ledger class to do some custom validation logic, but everything is done as intervals and I cant find the function that gets the current time. What is it?
user avatar
0 votes
2 answers
41 views

Diagnosing a POSIXTime discrepancy

My computer's date command is returning a timestamp wildly different from what testnet wants. Using this formula, > slotToEndPOSIXTime testnetConf 55047601 POSIXTime {getPOSIXTime = 1651015217999} ...
user avatar
  • 333
0 votes
0 answers
9 views

How to Ensure Constant Timing in Contracts Given Slots can be Changed?

The amount of time a slot represents can be changed. This means if I code a smart contract that has some sort of waiting function for N slots, the amount of time it waits for will change with the slot ...
user avatar
3 votes
1 answer
28 views

Is there a way for a contract to look at the duration of the timeslot?

Are there oracles for knowing in real time the duration of the Cardano time slot in real time ? One learns in the Plutus Pioneer Program that the duration of this time slot can change, is there a way ...
user avatar
  • 165
0 votes
0 answers
30 views

Working with time in tests

I'm trying to write some tests for EnglishAuction, from Plutus pioneers #1. I want to write a test that first starts an auction and then tries to close an auction before the deadline has passed (...
user avatar
1 vote
2 answers
94 views

Is there a way for a validator to get the current time?

Is it possible for a validator to get the current time without it being passed in via the redeemer? My validator is heavily dependent on the time being correct so it would probably be a bad design ...
user avatar