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 时间戳。

属性

适用于