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"