This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITime Interface > ITime.SubtractTime Method (ArcObjects .NET 10.5 SDK) |
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
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.