# Control Ledger time in sandbox

**URL:** <https://forum.canton.network/t/control-ledger-time-in-sandbox/6918>\
**Category:** App Development\
**Tags:** daml\
**Created:** [November 2, 2023, 6:08pm UTC](https://forum.canton.network/t/control-ledger-time-in-sandbox/6918 "2023-11-02T18:08:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok\_Raj](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ashok_raj/32/4005_2.png) [@Ashok\_Raj](https://forum.canton.network/u/Ashok_Raj)\
**Post date:** [November 2, 2023, 6:08pm UTC](https://forum.canton.network/t/control-ledger-time-in-sandbox/6918/1 "2023-11-02T18:08:18Z")

</div>

I want to progress the ledger time in sandbox. Think of a daml finance reference app, and i want to show life-cycling a bond more than once. For that i need to progress the ledger date. What is the best way to do this?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [November 3, 2023, 10:17am UTC](https://forum.canton.network/t/control-ledger-time-in-sandbox/6918/2 "2023-11-03T10:17:52Z")

</div>

You need to enable simtime in your Canton config with something like this:

```haskell
canton {
  parameters {
    clock.type = sim-clock
  }
  participants {
    participant {
      testing-time.type = monotonic-time
     …
    }
  }
}

```

You can then control time using the [time service](https://docs.daml.com/app-dev/grpc/proto-docs.html#com-daml-ledger-api-v1-testing-timeservice) also exposed as `setTime` in Daml script or `participant.ledger_api.time.set` in the Canton console.
