cDateTime: Subtract

Subtract

Subtracts either a cDateTime instance or a TimeSpan instance from this cDateTime instance.



 Public Function Subtract(
	  ByRef Value As Variant ) As Object

Parameters

Value
[ByRef] Variant. A cDateTime or TimeSpan object to subtract from this instance.

Return Values

Object -  If subtracting a cDateTime object from this, then a TimeSpan representing the difference in time between the two is returned. If subtracting a TimeSpan object from this instance, then a new cDateTime with a difference of the TimeSpan obect from this instance is returned.

Remarks

See Also

Project VBCorLib Overview Class cDateTime Overview cDateTime Properties cDateTime Methods Second (get) Ticks (get)