From: Ashley on
Unfortunately, this is not as easy as it seems. It is pretty easy to get the dates where you spring forward or backward (http://www.timeanddate.com/worldclock/timezone.html?n=234&syear=1970) but there is no way to know if 1:00:00 AM through 1:59:59AM on the Fall back day is Standard Time or Daylight Saving Time. The times overlap. Example:

Local time DST? Zone Event/details
Sunday, October 25, 1970 at 1:59:59 AM Yes,+1hr PDT
Sunday, October 25, 1970 at 1:00:00 AM No PST DST ends
so you will have two October 25, 1970 at 1:00:00 AM

if you were working with a time series then you could somehow account for this overlap but for a date out of context, it is impossible to tell.

At least this is only a problem for that one hour on Fall back day.

What a pain.
Ashley

nospam(a)no.spam.jkk.nl (Koen Kok) wrote in message <923FA8636jkoknospamecnnl(a)130.112.1.5>...
> Hi,
>
> I'm looking for a function that determines whether a given datenum is in
> the summertime period or in the wintertime period of the Daylight Saving
> Time.
>
> Anyone?
>
> Thanks for reading.
>
> Koen.