- 4.24.2.21. -
Table of Contents
4. Standard Units
4.24. DOS - MSDOS support unit
4.24.2. DOS Unit Procedures and Functions
4.24.2.21. GetTime
4.24.2.21. GetTime
Targets: MS-DOS, OS/2, Win32
Dos Unit, WinDos Unit
Returns the current time set in the operating system.
Declaration:
procedure GetTime(var Hour, Minute, Second, Sec100: Word);
Remarks:
Ranges of the values returned are Hour [0..23], Minute [0..59],
Second [0..59], and Sec100 (hundredths of seconds) [0..99].
Example:
uses Dos;
var
Hour, Minute, Second, Sec100: Word;
begin
GetTime(Hour, Minute, Second,Sec100);
WriteLn('Current time is: ', Hour, ':', Minute, ':',
Second, ':', Sec100);
end.
See also:
SetTime
- 4.24.2.21. -