Previous: 4.74.2.20. GetIntVec procedure To the Table of Contents Next: 4.74.2.22. GetVerify procedure
4.74.2.20. GetIntVec procedure Table of Contents 4.74.2.22. GetVerify procedure

- 4.74.2.21. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.2. WinDos Unit Procedures and Functions
4.74.2.21. GetTime procedure


4.74.2.21. 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:
uses WinDos;
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: 4.74.2.20. GetIntVec procedure To the Table of Contents Next: 4.74.2.22. GetVerify procedure
4.74.2.20. GetIntVec procedure Table of Contents 4.74.2.22. GetVerify procedure

- 4.74.2.21. -