At 12:01 PM 06.01.96, Brad Cox wrote: >Does anyone know if the time cache business in timelocal/cheat works >properly with the mac's notion of date bases? Everything I've tried, using >both MacPerl 4 and 5, leads to an infinite loop inside the &cheat routine. >Here's a recent printout of variables ... >timelocal(00, 30, 16, 23, 0, 1996) Try subtracting '1900' from the year before passing it to 'timelocal'; if you inspect the output from 'localtime', you'll notice that it gives '96' as the year. Incidentally, I think there *is* something strange with 'timelocal' under MacPerl 5. It used to work fine under MacPerl 4, but now something like: &timelocal(localtime(time)) simply returns '-1', suggesting that either all is not well or I'm overlooking something obvious again. A -- angus@aegypt.demon.co.uk angus@pobox.com http://www.tardis.ed.ac.uk/~angus/