Edit

Share via


FakeTimeProvider.SetUtcNow(DateTimeOffset) Method

Definition

Sets the date and time in the UTC time zone.

public:
 void SetUtcNow(DateTimeOffset value);
public void SetUtcNow (DateTimeOffset value);
member this.SetUtcNow : DateTimeOffset -> unit
Public Sub SetUtcNow (value As DateTimeOffset)

Parameters

value
DateTimeOffset

The date and time in the UTC time zone.

Exceptions

The supplied time value is before the current time.

Applies to