TfsGitObject.ConvertToLocalTime Method
Convert DateTime to local time using specified offset. If no offset is supplied, use server time.
Namespace: Microsoft.TeamFoundation.Git.Server
Assembly: Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)
Syntax
'Declaration
Protected Shared Function ConvertToLocalTime ( _
utcTime As DateTime, _
baseUtcOffset As TimeSpan _
) As DateTime
protected static DateTime ConvertToLocalTime(
DateTime utcTime,
TimeSpan baseUtcOffset
)
protected:
static DateTime ConvertToLocalTime(
DateTime utcTime,
TimeSpan baseUtcOffset
)
static member ConvertToLocalTime :
utcTime:DateTime *
baseUtcOffset:TimeSpan -> DateTime
protected static function ConvertToLocalTime(
utcTime : DateTime,
baseUtcOffset : TimeSpan
) : DateTime
Parameters
- utcTime
Type: System.DateTime
- baseUtcOffset
Type: System.TimeSpan
Return Value
Type: System.DateTime
Returns DateTime.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.