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.
----- Original Message -----
From: "Tom Munro Glass" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 2:01 PM
Subject: RE: [DUG]: Daylight savings
> You need to look more closely at the contents of the TIME_ZONE_INFORMATION
> structure returned by GetTimeZoneInformation. You should find that the
wYear
> fields of StandardDate and DaylightDate are set to zero and this means
that
> it is working in day-in-month format. Consequently, standard time begins
on
> the 3rd Sunday in March regardless of the year.
>
> HTH,
>
> Tom Munro Glass
>
>
> > I have an app that is calculating sunrise and sunset (and moonrise and
> > moonset) times along with tide information for any given date
> > or location.
> > The times need to be adjusted for daylight savings so I have
> > been using the
> > GetTimeZoneInformation API call. However, the information returned by
> > GetTimeZoneInformation indicates that daylight savings ended
> > on the 3rd of
> > this month (as it used to) - however my computers clock has
> > not adjusted
> > itself, ie. it still shows the correct time so I am asuming
> > it knows that it
> > needs to kick over on the 18th.
> >
> > Does anyone know how the MS clock knows that daylight savings
> > hasn't ended
> > yet but the API call (which I assumed it would be using)
> > returns the wrong
> > information?
> >
> > Can anyone tell me how to get the correct information if
> > GetTimeZoneInformation won't give it?
> >
> > thanks,
> >
> > Phil Middlemiss.
> >
>
> --------------------------------------------------------------------------
-
> 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"