Method SetInstant
SetInstant(Instant)
Sets the current UTC instant, using forward marching when instant is strictly after
the current virtual time.
public void SetInstant(Instant instant)
Parameters
instantInstantThe new current instant on the global timeline.
Remarks
Equivalent to SetTime(DateTimeOffset) after converting
instant to UTC. When the clock is not running, this is the instant returned by
NowInstant and related members until the next change.
Exceptions
- InvalidOperationException
Thrown under the same backward-time rules as SetTime(DateTimeOffset).