FakeTimeProvider.AdjustTime(DateTimeOffset) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Advances the date and time in the UTC time zone.
public:
void AdjustTime(DateTimeOffset value);
public void AdjustTime (DateTimeOffset value);
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0004", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public void AdjustTime (DateTimeOffset value);
member this.AdjustTime : DateTimeOffset -> unit
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0004", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
member this.AdjustTime : DateTimeOffset -> unit
Public Sub AdjustTime (value As DateTimeOffset)
Parameters
- value
- DateTimeOffset
The date and time in the UTC time zone.
- Attributes
Remarks
This method updates the current time, and has no impact on outstanding timers. This is similar to what happens in a real system when the system's time is changed.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.