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


INetworkQuery2.ConvertUTCTimeToLocalTime Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkQuery2.ConvertUTCTimeToLocalTime Method

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

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

Parameters localTimeZoneID [in] localTimeZoneID is a parameter of type long utcTime [in] utcTime is a parameter of type DATE localTime [out, retval] localTime is a parameter of type DATE

Product Availability

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

See Also

INetworkQuery2 Interface