WBEMTime::Gettime_t 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 Gettime_t method gets the time as an ANSI C run-time time_t variable.


BOOL Gettime_t(
  time_t *ptime_t



ANSI C run-time time_t variable, which represents the number of seconds since midnight Jan 1, 1970. In DMTF format, this is 19700101000000.000000-000.

Return value

The method returns TRUE if the object's time is equal to or later than midnight Jan 1, 1970.

The method returns FALSE on all other times or if the object's time is set to INVALID_TIME. In this case, the value of ptm is indeterminate.


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