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


ITime.SubtractTime Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITime Interface > ITime.SubtractTime Method
ArcGIS Developer Help

ITime.SubtractTime Method

Subtracts a given time, and returns the time duration result.

[Visual Basic .NET]
Public Function SubtractTime ( _
    ByVal Time As ITime _
) As ITimeDuration
[C#]
public ITimeDuration SubtractTime (
    ITime Time
);
[C++]
HRESULT SubtractTime(
  ITime* Time
);
[C++]
Parameters
Time [in]

Time is a parameter of type ITime*

Product Availability

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

Description

This function subtracts the passed time value from the current time, and returns the difference in the TimeDuration parameter.  If the passed time value is before the current time value, then the result will be positive.  If the passed time value is after the current time value, then the result will be negative.

See Also

ITime Interface