Previous: GetIntVec procedure To the Table of Content Next: GetVerify procedure

- 4.24.2.21 -
Standard Units
Dos Unit
Dos Unit Procedures and Functions

GetTime procedure

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:
var
  Hour, Minute, Second, Sec100: Word;
begin
  GetTime(Hour, Minute, Second,Sec100);
  WriteLn('Current time is: ', Hour, ':', Minute, ':',
          Second, ':', Sec100);
end.
See also:
SetTime


Previous: GetIntVec procedure To the Table of Content Next: GetVerify procedure
GetIntVec procedure Table of Content GetVerify procedure

- 4.24.2.21 -