WBEMTime::GetBSTR method (wbemtime.h)

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

The GetBSTR method gets the time as a BSTR value in CIM Date and Time Format.

Syntax

BSTR  throw(CHeap_Exception) GetBSTR();

Return value

The method returns a BSTR in Date and Time Format. The time is given as GMT. If the internal time value is INVALID_TIME, the method returns NULL.

Remarks

If the value returned is not NULL, the calling function must call SysFreeString on the returned value. This method returns the same value as WBEMTime::GetDMTF(false).

Requirements

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

See also

WBEMTime

WBEMTime::GetDMTF