[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53908] Omissions in Documentation of tm_struc
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #53908] Omissions in Documentation of tm_struct |
Date: |
Tue, 15 May 2018 15:21:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #3, bug #53908 (project octave):
I think someone with access to Windows will have to try to get something
working with GetTimeZoneInformation, GetDynamicTimeZoneInformation, and/or
GetTimeZoneInformationForYear. The latter two are not available in older
versions of Windows.
I guess this might look something like
GetTimeZoneInformationForYear (tm.tm_year, nullptr, &tzi);
if (tm.tm_isdst)
tm.tm_gmtoff = -60 * (tzi.Bias + tzi.DaylightBias);
else
tm.tm_gmtoff = -60 * (tzi.Bias + tzi.StandardBias);
but that's just off the top of my head without ever having used these
functions before.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53908>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/