TfsGitObject.ConvertToLocalTime 方法
使用指定的偏移量,将日期时间转换为本地时间。 如果未提供偏移量,请使用服务器时间。
命名空间: Microsoft.TeamFoundation.Git.Server
程序集: Microsoft.TeamFoundation.Git.Server(在 Microsoft.TeamFoundation.Git.Server.dll 中)
语法
声明
Protected Shared Function ConvertToLocalTime ( _
utcTime As DateTime, _
baseUtcOffset As TimeSpan _
) As DateTime
protected static DateTime ConvertToLocalTime(
DateTime utcTime,
TimeSpan baseUtcOffset
)
参数
- utcTime
类型:System.DateTime
- baseUtcOffset
类型:System.TimeSpan
返回值
类型:System.DateTime
返回 DateTime。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。