API Reference › Clock › Clock.set
method

Clock.set

Clock.set(t)

Sets the simulated clock to the instant t. Typically called once on load (e.g. from a saved Time.now()), after which gameplay advances it deterministically.

Example

program Demo {
  handler Step phase Update {
    Clock.set(DateTime.from(2026, 8, 30, 8, 0, 0))
  }
}
← All symbols