0

I would like to know how to calculate the slot time for a particular date(e.g. 1/1/2023).

1

1 Answer 1

1

This depends on the slot length which can be changed. You can't be certain about a slot number for sometime that is a long time in the future.

If you assume you know the slot config then you can use https://github.com/input-output-hk/plutus-apps/blob/d637b1916522e4ec20b719487a8a2e066937aceb/plutus-ledger/src/Ledger/TimeSlot.hs#L130

Not the answer you're looking for? Browse other questions tagged or ask your own question.