Is getTime available on all ledgers or just sandbox classic?
App Development2 posts413 views4 likesLast activity May 2020
AN
anthonyOP
May 2020I 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.
ST
stefanobaghino-da
May 2020getTime 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.