WBEMTimeSpan::operator-= method

[The WBEMTimeSpan class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

Compares two WBEMTimeSpan objects using the subtract and assign operator (–=).


const WBEMTimeSpan & operator-=(
  const WBEMTimeSpan & uSub



Reference to the WBEMTimeSpan object, whose time span is subtracted from the "this" object.

Return value

This method returns a new WBEMTimeSpan object with a value equal to the difference in time.


Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemtime.h
DLL FrameDynOS.dll; FrameDyn.dll