Table of Contents

Method SetInstant

Namespace
KZDev.PrimeTime.Testing
Assembly
KZDev.PrimeTime.Testing.dll

SetInstant(Instant)

Sets the current UTC instant, using forward marching when instant is strictly after the current virtual time.

void SetInstant(Instant instant)

Parameters

instant Instant

The 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).