Hi all,
The following code snippet isn't working terribly well for
me. I can get
the Bias, StandardName and DaylightName, but everything else
is goofed
up. The alignment seems ok, but maybe I've missed something
or maybe I
have to do extra work to unpack the SYSTEMTIME structures.
require 'windows/time'
include Windows::Time
buf = 0.chr * 172 # sizeof(TIME_ZONE_INFORMATION)
GetTimeZoneInformation(buf)
p buf[0,4].unpack('L')[0] # Bias
p buf[4,64].tr(" |