WBEMTime::GetLocalOffsetForDate(consttm*) 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 GetLocalOffsetForDate method returns the offset in minutes (+ or –) between GMT and local time for the FILETIME supplied in the argument.

Syntax

LONG GetLocalOffsetForDate(
  const tm *tmin
);

Parameters

tmin

Pointer to a MFC FILETIME structure that represents the number of 100-nanosecond intervals since January 1, 1601 as a 64-bit value.

Return value

Returns the offset in minutes (+ or -) between GMT and local time for the time supplied in the argument.

Remarks

These are public static functions which permit their usage anywhere without having a WBEMTime object.

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