语言

SqlFunctions.GetUtcDate 方法

定义

以日期时间值的形式返回当前数据库系统时间戳。 数据库时区偏移量未包含在内。 此值表示当前的 UTC 时间(通用协调时间)。 此值得自运行 SQL Server 实例的计算机的操作系统。

[System.Data.Entity.DbFunction("SqlServer", "GETUTCDATE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public static Nullable<DateTime> GetUtcDate();
static member GetUtcDate : unit -> Nullable<DateTime>
Public Shared Function GetUtcDate () As Nullable(Of DateTime)

返回

当前数据库 UTC 时间戳。

特性

适用于