newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: Dmi on November 21, 2006, 11:49:17 PM

Title: (timer) through midnight
Post by: Dmi on November 21, 2006, 11:49:17 PM
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.
Title:
Post by: cormullion on November 22, 2006, 02:34:34 AM
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  :-))
Title:
Post by: Lutz on November 23, 2006, 05:58:12 AM
This is fixed for Win32 in version 9.0.4.



Lutz
Title:
Post by: Dmi on November 23, 2006, 06:39:26 AM
Many Thanx, Lutz!