# Is getTime available on all ledgers or just sandbox classic?

**URL:** <https://forum.canton.network/t/is-gettime-available-on-all-ledgers-or-just-sandbox-classic/543>\
**Category:** App Development\
**Tags:** time, sandbox\
**Created:** [May 27, 2020, 1:19pm UTC](https://forum.canton.network/t/is-gettime-available-on-all-ledgers-or-just-sandbox-classic/543 "2020-05-27T13:19:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthony](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/anthony/32/419_2.png) [@anthony](https://forum.canton.network/u/anthony)\
**Post date:** [May 27, 2020, 1:19pm UTC](https://forum.canton.network/t/is-gettime-available-on-all-ledgers-or-just-sandbox-classic/543/1 "2020-05-27T13:19:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [May 27, 2020, 1:23pm UTC](https://forum.canton.network/t/is-gettime-available-on-all-ledgers-or-just-sandbox-classic/543/2 "2020-05-27T13:23:53Z")

</div>

`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.
