SPUtility.GetServerNow method
目前的日期及時間的資料庫伺服器上用於指定站台,則傳回的國際標準時間 (UTC)。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetServerNow ( _
web As SPWeb _
) As DateTime
'用途
Dim web As SPWeb
Dim returnValue As DateTime
returnValue = SPUtility.GetServerNow(web)
public static DateTime GetServerNow(
SPWeb web
)
參數
web
Type: Microsoft.SharePoint.SPWeb代表網站的Microsoft.SharePoint.SPWeb物件。
傳回值
Type: System.DateTime
System.DateTime值,指出目前的日期和時間的資料庫伺服器上。