Page 1 of 1

(timer) through midnight

Posted: Wed Nov 22, 2006 7:49 am
by Dmi
Hi, Lutz!

The "ticker" example from the manual stops working after midnight under Win2k. (not tested under *nix).

Code: Select all

(define (ticker)
 (println (date))
 (timer 'ticker 1.0)
)

Code: Select all

Wed Nov 22 23:59:54 2006
Wed Nov 22 23:59:55 2006
Wed Nov 22 23:59:56 2006
Wed Nov 22 23:59:57 2006
Wed Nov 22 23:59:58 2006
Wed Nov 22 23:59:59 2006
Thu Nov 23 00:00:00 2006
...and no more output is produced

How can I pass into the next day?

newlisp v.9.0.

Posted: Wed Nov 22, 2006 10:34 am
by cormullion
It seems to work OK on MacOS X (Unix, newlisp v9.0) - I reset the system clock to 23:55 and watched it till 00:02...

(And how have you managed to reach Thursday already - I'm still struggling with Wednesday here :-))

Posted: Thu Nov 23, 2006 1:58 pm
by Lutz
This is fixed for Win32 in version 9.0.4.

Lutz

Posted: Thu Nov 23, 2006 2:39 pm
by Dmi
Many Thanx, Lutz!