home *** CD-ROM | disk | FTP | other *** search
- program wTimeLib_Test ;
- { ╔═══╦══════════════════════════════════════════════╦═══╗
- ║ ║ Pascal Library by Scott Wade ║ ║
- ║ ║ 715 FM 1959 Apt 310 ║ ║
- ║ ║ Houston, TX 77034 ║ ║
- ┌──────╨───╨──────────────────────────────────────────────╨───╨──────┐
- │ This group of routines is contributed to public domain, and no │
- │ one can possibly get any commercial value out of them since they │
- │ must be used in other programs. I require that if these are used │
- │ as is in any program, that this banner remain with the source │
- │ code of the program. I would appreciate any comments or sugges- │
- │ tions on improvements, & am curious to hear how these are used. │
- │ You can leave a message for me on these BBS's: │
- │ Ziggy's 821-1391 ScoreBoard 583-7848 │
- │ TBL-COMM 661-9040 Test-Mode 660-9252 │
- └────────────────────────────────────────────────────────────────────┘
- This will test the Time & Date library for compatibility with earlier
- versions, etc,etc. for v1.2
- NOTE : procedure wMONTH was added to wTIME.lib v1.2, so comment out the part
- of this program that calls that for testing previous versions of this LIB. }
-
- Type word = string[ 10 ];
- var Time,Date : word ;
- Loop : integer;
- {$I wTime.LIB }
-
- begin
- wTime( Time, Date);
- GoToXY(1,10);
- writeln('Test of wTime.LIB v1.2 ');
- writeln('The Time is ',Time,' and The Date is ',Date);
-
- { comment out the following for versions previous to v1.2: }
- write(' Value input: Month returned: Val');
- writeln( 'ue input: Month returned:');
-
- For Loop := 0 to 13 do begin
- wMonth( Loop, Date );
- write(Loop:8,' |',Date,'| ');
- end{ Loop };
- writeln('''ERR'' should be returned for any value out of range 1..12');
- end.