NewDate 1.0 ©1993 by Alejandro Garza ------------------------------------------------------------- A small util to set the system date on those machines unlucky enough not to have a battery backed-up clock. ------------------------------------------------------------- WHAT IS IT? ================ Err... I thought I mentioned that already. WHY IS IT? ================ Well.. I'm on an A1000 (yes, the few! The proud! The underpowered!) and I never got around to buying a clock/calendar for it. So one day I just decided I'd write a nice window interface to set the system date. Neat, huh? This program will also be of use for all of those who have A1200s without a built-in clock. Just place in your WBStartup drawer! FEATURES ============= Well, apart from having basically the same syntax as the AmigaDOS 'date' command (see below) it has a font-sensitive interface, so no matter what your taste in fonts, this program will adapt to it. USAGE ============= Just type from your shell: > NewDate [RETURN] or double-click on the WorkBench icon. You can also place on the System 'WBStartup' drawer and have automatic date requests on startup (which is the preferred thing to do.) Just type the date in the string gadget (which already contains the current system date) and either CLOSE the window to exit without changing the system's date, or press the "Accept" button to save the date. If the date is set incorrectly, the screen will flash (using the DisplayBeep() function). You must enter a correct date an accept it, or close the window. You can also type the following: the date and time, only the time, or nothing at all. Whatever you ommit, will be left as it was. The font used to render the window is the 'WorkBench screen font' used for window titlebars, etc. You cannot change this. BUGS ============ So far, NewDate has a problem with REALLY BIG fonts... bigger than 30 points. But fonts this size won't be appearing on you WorkBench screen font settings, I think. :) At most, you won't be able to see the entire output.. No GURUs so far. I haven't tested for Enforcer hits, but there's no reason it should provoke any (everything is std. intuition calls). Another problem, although not a bug at all, is that if you want to run some date-dependent programs (like Reminder-1.20, etc.), you cannot run these programs from WBStartup, even if you do the same for NewDate. This is because the date to these programs is still the original system date (Somewhere around 01-Jan-1978). To get around this, you could insert the following statements in you user-startup:: c:NewDate ; or wherever you put the NewDate executable c:ReminderCheck ; or wherever your date-dependent program is This way, the startup script will pause until you've set the date, and then it's OK for the date-dependent prog. to execute. TODO ============= Features I'd want to implement:: - Support for battery-backed-up clocks - Save latest date to file, so there'll be little to change if a GURU occurs, etc. - ToolTypes definition of window coordinates ETC. ================ Many thanks to all those at IRC patient enough to help me thru this simple proyect, which is my first real attempt at producing something really useful. (=^) ..maybe I should've called it CaveDate(TM)... (|^) And also, thanx to the original Amiga 'Lorraine' team (Mr. Miner and such...) which dreamed up the computer of my dreams, which I still use on a daily basis. WHO MADE THIS? ===================== This program and docs are ©1993 Alejandro Garza. This program may be distributed freely as long as the Docs and binaries are kept intact. You are not forced to send me any money, free computers, etc. but instead E-Mail me for comments, bug reports, etc. I can be reached at the following addresses: Alejandro Garza González Rio Rhin #514 pte. Col. del Valle Garza García, N.L. CP 66220 MEXICO E-Mail: jano@men_at_work.mty.itesm.mx IRC: JanusMan Be free to drop a note saying hi anytime! Also, check out my gfx work at AmiNet (look for stuff 'made by JanusMan') :) Bye for now!