What's up with the time functions?
kevin at runrev.com
Thu Jan 24 20:13:01 EST 2002
On 23/1/02 6:49 pm, Ben Rubinstein <benr_mc at cogapp.com> wrote:
> Why would that be two hours?
> And I get exactly the same result; I'm in the UK, and at this time of the
> year that means GMT. It also makes no difference when I toggled daylight
> savings time in the D&T control panel (admittedly I haven't quit and
> relaunched Rev). Nelson Zink reported this from somewhere on GMT +9. And I
> also tried converting "6/6/02", just in case there was something really
> 'clever' going on - still 2am. So I'm not clear how this is daylight
> savings time related?
> And if it is - isn't that a bug?
I asked about this - probably a good one for the docs:
> Because if you use only one hour, you'll get the wrong day (the
> official change to DST occurs at 2am, which is what the time libraries
> we use on all platforms implement). This only appears to be a problem
> if you specify a date without a time and then later try to get the
> time back out. Don't do that. If you need to work with the time, you
> need to supply it going in to the convert.
Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707.
More information about the Use-livecode