This document is archived and information here might be outdated.  Recommended version.


INetworkQuery2.ConvertLocalTimeToUTCTime Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkQuery2 Interface > INetworkQuery2.ConvertLocalTimeToUTCTime Method
ArcGIS Developer Help

INetworkQuery2.ConvertLocalTimeToUTCTime Method

Converts local time for the given time zone to UTC time.

[Visual Basic .NET]
Public Function ConvertLocalTimeToUTCTime ( _
    ByVal localTimeZoneID As Integer, _
    ByVal localTime As DateTime _
) As DateTime
[C#]
public DateTime ConvertLocalTimeToUTCTime (
    int localTimeZoneID,
    DateTime localTime
);
[C++]
HRESULT ConvertLocalTimeToUTCTime(
  long localTimeZoneID,
  DATE localTime
);
[C++]
Parameters
localTimeZoneID [in]

localTimeZoneID is a parameter of type long localTime [in]
localTime is a parameter of type DATE

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

INetworkQuery2 Interface