Condividi tramite


CustomTimeZone.ToUniversalTime Method

Returns the Coordinated Universal Time (UTC) that corresponds to a specified time.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Overrides Function ToUniversalTime ( _
    time As DateTime _
) As DateTime
public override DateTime ToUniversalTime(
    DateTime time
)
public:
virtual DateTime ToUniversalTime(
    DateTime time
) override
abstract ToUniversalTime : 
        time:DateTime -> DateTime  
override ToUniversalTime : 
        time:DateTime -> DateTime
public override function ToUniversalTime(
    time : DateTime
) : DateTime

Parameters

Return Value

Type: System.DateTime
A DateTime object whose value is the Coordinated Universal Time (UTC) that corresponds to time.

.NET Framework Security

See Also

Reference

CustomTimeZone Class

Microsoft.TeamFoundation.Common Namespace