unsigned __cdecl _getsystime(struct tm *);
struct tm {
int tm_sec; /* seconds after the minute - [0,59] */
int tm_min; /* minutes after the hour - [0,59] */
int tm_hour; /* hours since midnight - [0,23] */
int tm_mday; /* day of the month - [1,31] */
int tm_mon; /* months since January - [0,11] */
int tm_year; /* years since 1900 */
int tm_wday; /* days since Sunday - [0,6] */
int tm_yday; /* days since January 1 - [0,365] */
int tm_isdst; /* daylight savings time flag */
};
#include<time.h>
CInstance::SetDateTime
The SetDateTime method sets a datetime property.
bool SetDateTime(
LPCWSTR name,
const WBEMTime& wbemtime
);
Parameters
name
Name of the datetime property that is set.
wbemtime
Value assigned to the datetime property.
Return Values
Returns TRUE if the operation was successful and FALSE if an attempt was made to set a nonexistent or non-datetime property. More information is available in the log file, Framework.log.
Note The wbemtime parameter will be converted to local time, and any arbitrary offsets will be lost.
Requirements
Windows NT/2000/XP: Included in Windows NT 4.0 SP4 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Instance.h; include FwCommon.h.
Library: Use Framedyn.lib.