WBEMTime class (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 WBEMTime class facilitates conversions between various Windows and ANSI C run-time time formats. For more information, see also WBEMTimeSpan Class Methods.
Methods
The WBEMTime class has these methods.
WBEMTime::Clear The Clear method sets the time in the WBEMTime object to an invalid time. |
WBEMTime::GetBSTR Gets the time as a BSTR value in CIM Date and Time Format. |
WBEMTime::GetDMTF The GetDMTF method converts a BSTR value to CIM Date and Time Format. |
WBEMTime::GetDMTFNonNtfs The GetDMTFNonNtfs method gets a DMTF date in a CIM Date and Time Format from a FAT that does not have time zones. |
WBEMTime::GetFILETIME The GetFILETIME method gets the time as an MFC FILETIME structure. |
WBEMTime::GetLocalOffsetForDate The GetLocalOffsetForDate method returns the offset in minutes (+ or �) between GMT and local time for the FILETIME supplied in the argument. (overload 1/4) |
WBEMTime::GetLocalOffsetForDate The GetLocalOffsetForDate method returns the offset in minutes (+ or �) between GMT and local time for the FILETIME supplied in the argument. (overload 3/4) |
WBEMTime::GetLocalOffsetForDate The GetLocalOffsetForDate method returns the offset in minutes (+ or �) between GMT and local time for the FILETIME supplied in the argument. (overload 4/4) |
WBEMTime::GetLocalOffsetForDate The GetLocalOffsetForDate method returns the offset in minutes (+ or �) between GMT and local time for the FILETIME supplied in the argument. (overload 2/4) |
WBEMTime::GetStructtm The GetStructtm method gets the time as an ANSI C run-time struct tm structure. |
WBEMTime::GetSYSTEMTIME The GetSYSTEMTIME method gets the time as an MFC SYSTEMTIME structure. |
WBEMTime::GetTime The GetTime method returns the time as a 64-bit integer. |
WBEMTime::Gettime_t The Gettime_t method gets the time as an ANSI C run-time time_t variable. |
WBEMTime::IsOk The IsOk method indicates whether the WBEMTime object represents a valid time. |
WBEMTime::operator+ The WBEMTime class addition operator (+) has been overloaded to increment an object's time by a time span. |
WBEMTime::operator+= The WBEMTime class add-and-assign (+=) operator has been overloaded to increment an object's time by a time span. |
WBEMTime::operator= The WBEMTime class assignment operator overload method takes a CIM date time format parameter. (overload 4/5) |
WBEMTime::operator= The WBEMTime class assignment operator overload method takes a CIM date time format parameter. (overload 5/5) |
WBEMTime::operator= The WBEMTime class assignment operator overload method takes a CIM date time format parameter. (overload 2/5) |
WBEMTime::operator= The WBEMTime class assignment operator overload method takes a CIM date time format parameter. (overload 1/5) |
WBEMTime::operator= The WBEMTime class assignment operator overload method takes a CIM date time format parameter. (overload 3/5) |
WBEMTime::operator== The WBEMTime::operator-equal-equal-to (wbemtime.h) comparison operators (== != < <= > >=) have been overloaded to compare two WBEMTime objects. |
WBEMTime::operator> The WBEMTime comparison operators (== != < <= > >=) have been overloaded to compare two WBEMTime objects. |
WBEMTime::operator>= The WBEMTime::operator-greater-than-equal-to (wbemtime.h) comparison operators (== != < <= > >=) have been overloaded to compare two WBEMTime objects. |
WBEMTime::operator< The WBEMTime::operator-less-than (wbemtime.h) comparison operators (== != < <= > >=) have been overloaded to compare two WBEMTime objects. |
WBEMTime::operator<= The WBEMTime::operator-less-than-equal-to (wbemtime.h) comparison operators (== != < <= > >=) have been overloaded to compare two WBEMTime objects. |
WBEMTime::operator!= The WBEMTime::operator-not-equal-to (wbemtime.h) comparison operators (== != < <= > >=) have been overloaded to compare two WBEMTime objects. |
WBEMTime::operator- 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. (overload 2/2) |
WBEMTime::operator- 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. (overload 1/2) |
WBEMTime::operator-= The WBEMTime class subtract-and-assign (�=) operator has been overloaded to decrement an object's time by a time span. |
WBEMTime::SetDMTF The SetDMTF method sets the time in the WBEMTime object. The time is given by its BSTR parameter in Date and Time Format. A date and time argument earlier than midnight January 1, 1601 is not valid. |
WBEMTime::WBEMTime The WBEMTime class constructor facilitates conversions between various Windows and ANSI C run-time time formats. |
WBEMTime::WBEMTime The WBEMTime class constructor overload method takes a BSTR parameter. |
WBEMTime::WBEMTime The WBEMTime overload class constructor takes a FILETIME reference parameter. |
WBEMTime::WBEMTime The WBEMTime overload class constructor takes a SYSTEMTIME parameter. |
WBEMTime::WBEMTime The WBEMTime overload class constructor takes an ANSI C time_t structure parameter. |
WBEMTime::WBEMTime The WBEMTime overload class constructor takes an ANSI C tm structure parameter. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wbemtime.h |