Daylight Savings Time

Ken Ray kray at sonsothunder.com
Tue Oct 28 01:35:35 EDT 2008


> This seems to work for determining if daylight savings time is in
> effect on a given computer. Would this be reliable?
> 
> put false into DST
> put the short time into x
> convert x to seconds
> convert x to short time
> if x <> the short time then put true into DST

No, because AFAIK the act of converting the date will automatically adjust
the returned values. For example, I'm currently experiencing DST, and
running your code returns "false".

It's a lot more complicated than that (see my previous post)...

;-)


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the use-livecode mailing list