Прочетете на английски Редактиране

Споделяне чрез


TimeProvider.GetUtcNow Method

Definition

Gets a DateTimeOffset value whose date and time are set to the current Coordinated Universal Time (UTC) date and time and whose offset is Zero, all according to this TimeProvider's notion of time.

C#
public virtual DateTimeOffset GetUtcNow();

Returns

Remarks

The default implementation returns UtcNow.

Applies to

Продукт Версии
.NET 8, 9, 10
.NET Standard 2.0 (package-provided)