ArcObjects Library Reference (System)  

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,
  ITimeDuration** TimeDuration
);
[C++]

Parameters

Time [in]

  Time is a parameter of type ITime

TimeDuration [out, retval]

  TimeDuration is a parameter of type ITimeDuration

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