WBEMTime::operator- method

[The WBEMTime 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.]

This overload of the WBEMTime class subtraction operator (–) subtracts a time span from an object's time to produce a new time object that contains the resulting time.

Syntax

WBEMTime operator-(
  const WBEMTimeSpan & sub
);

Parameters

sub

Return Value

When a WBEMTime object is returned, it is a new object whose time is the difference between the "this" object and the WBEMTimeSpan object used as the argument.

When a WBEMTimeSpan object is returned, it is a new time span object whose value is the difference between the "this" object and the WBEMTime object used as an argument.

Any returned objects that has a negative time span or a time before Jan 1, 1601 is set to INVALID_TIME.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header wbemtime.h
DLL FrameDynOS.dll; FrameDyn.dll