다음을 통해 공유


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

Return Value

Type: System.DateTime
Returns DateTime.

.NET Framework Security

See Also

Reference

TfsGitObject Class

Microsoft.TeamFoundation.Git.Server Namespace