I'm drawing a blank here...
when displaying the time, i'd like to also display whether it's daylight standard time or daylight savings time.
there's a windows function that will return that, but i have never done wrappers for that...
https://msdn.microsoft.com/en-us/librar ... 2147217396
DWORD WINAPI GetDynamicTimeZoneInformation(
_Out_ PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation
);
if it returns a 2,. it's daylight savings time, otherwise it's standard time.
does anyone have a function that handles this ?? or, can you tell me how to call it ??
Daylight or standard time
Daylight or standard time
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: Daylight or standard time
it is a Structure, read here https://msdn.microsoft.com/en-us/librar ... 85%29.aspxbwolfsohn wrote:when displaying the time, i'd like to also display whether it's daylight standard time or daylight savings time.
there's a windows function that will return that, but i have never done wrappers for that...
https://msdn.microsoft.com/en-us/librar ... 2147217396
DWORD WINAPI GetDynamicTimeZoneInformation(
_Out_ PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation
);
if it returns a 2,. it's daylight savings time, otherwise it's standard time.
as i remember StandardDate/DaylightDate are SYSTEMTIME Structurebwolfsohn wrote:does anyone have a function that handles this ?? or, can you tell me how to call it ??
(https://msdn.microsoft.com/en-us/librar ... 85%29.aspx)
it does contain Start Day / End Day of Daylightsaving.
if you just need Day, not Time Bias, you can calculate it with this
greetings by OHR
Jimmy
Jimmy