Thanks for the reply Tom,

For now I only need to get the time zone info for the location of the
computer. But, as mentioned, it is always returning the informatino in the
TIME_ZONE_INFORMATION structure in day-in-month format whereas I need it in
absolute format. Do you know how to get it to return in absolute format?

cheers,

Phil.
----- Original Message -----
From: "Tom Munro Glass" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 12:41 PM
Subject: RE: [DUG]: Daylight savings


> The TIME_ZONE_INFORMATION structure is really a "specification" for when
> Standard/Daylight periods begin, and the return value from
> GetTimeZoneInformation tells you which mode your computer is currently in.
I
> guess you're trying to find out which mode some arbitrary location is in,
so
> your computer's info is not much help.
>
> If you're running on NT, you could use SystemTimeToTzSpecificLocalTime to
> convert any UTC value to local time for a specified TIME_ZONE_INFORMATION.
> You can get the TIME_ZONE_INFORMATION structure from the registry at
> HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones. If you are
> using Win9X I guess you will have to write your own function.
>
> HTH
>
> Tom Munro Glass
>
> > Thanks Tom,
> >
> > The absolute format is mentioned before the day-in-month
> > format so I had
> > assumed that it would return the info in absolute format.
> >
> > I can't work out from the docs how to get the data returned
> > in absolute
> > format - I ensured the wYear was not 0 but no change. Any ideas?
> >
> > Thanks,
> >
> > Phil.
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to