(timer) through midnight

Started by Dmi, November 21, 2006, 11:49:17 PM

Previous topic - Next topic

Dmi

Hi, Lutz!



The "ticker" example from the manual stops working after midnight under Win2k. (not tested under *nix).
(define (ticker)
 (println (date))
 (timer 'ticker 1.0)
)

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.
WBR, Dmi

cormullion

#1
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  :-))

Lutz

#2
This is fixed for Win32 in version 9.0.4.



Lutz

Dmi

#3
Many Thanx, Lutz!
WBR, Dmi