<PackageReference Include="System.Reactive" Version="5.0.0-preview.16" />

SystemClockChangedEventArgs

(Infrastructure) Event arguments for system clock change notifications.
public DateTimeOffset NewTime { get; }

Gets the time after the system clock changed, or DateTimeOffset.MaxValue if not known.

public DateTimeOffset OldTime { get; }

Gets the time before the system clock changed, or DateTimeOffset.MinValue if not known.

Creates a new system clock notification object with unknown old and new times.

Creates a new system clock notification object with the specified old and new times.