Category : Pascal Source Code
Archive   : PASTUT.ZIP
Filename : TIMEDAT4.PAS

 
Output of file : TIMEDAT4.PAS contained in archive : PASTUT.ZIP
(* Chapter 14 - Program 9 *)
program Get_Time_And_Date; (* For TURBO Pascal 4.0 or 5.0 *)

uses Dos;

var Year,Month,Day,Weekday : word;
Hour,Minute,Second,Hundredths : word;

begin
GetTime(Hour, Minute, Second, Hundredths);
GetDate(Year, Month, Day, Weekday);
Writeln('The date is ',Month:2,'/',Day:2,'/',Year);
Writeln('The time is ',Hour:2,':',Minute:2,':',Second:2);
end.


  3 Responses to “Category : Pascal Source Code
Archive   : PASTUT.ZIP
Filename : TIMEDAT4.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/