Based on this part of the docs I would think that this is possible but couldn’t find an example in the docs:
: HasCallStack => Time → Script ()
Set the time via the time service.
This is only supported in static time mode when running over the gRPC API and in Daml Studio.
Note that the ledger time service does not support going backwards in time. However, you can go back in time in Daml Studio.
: RelTime → Script ()
Advance ledger time by the given interval.
Only supported in static time mode when running over the gRPC API and in Daml Studio. Note that this is not an atomic operation over the gRPC API so no other clients should try to change time while this is running.
Note that the ledger time service does not support going backwards in time. However, you can go back in time in Daml Studio.