Is getTime available on all ledgers or just sandbox classic?

I know there were a lot of changes to how ledgers handle time recently and was wondering if there’s still a getTime for every ledger.

1 Like

getTime as a function in DAML is supported on any DAML ledger, the recent changes in the time model should have actually made it easier to understand its output within a DAML program.

getTime is also incidentally the name of a testing RPC, which is offered by the sandbox outside of the Ledger API. If you are referring to that, you should not rely on it (not even for testing) unless you are working with the sandbox.

3 Likes