TimeZone.UTCToLocalTime 方法
将指定的日期转换为本地时间协调世界时 (UTC)。
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Function UTCToLocalTime ( _
date As DateTime _
) As ClientResult(Of DateTime)
用法
Dim instance As TimeZone
Dim date As DateTime
Dim returnValue As ClientResult(Of DateTime)
returnValue = instance.UTCToLocalTime(date)
public ClientResult<DateTime> UTCToLocalTime(
DateTime date
)
参数
date
类型:System.DateTime要转换的 UTC 值。
返回值
类型:Microsoft.SharePoint.Client.ClientResult<DateTime>
日期和时间转换为其本地值。