The gettime procedure

Description

The gettime procedure retrieves the current system time.

Parameter

  1. The first parameter is a reference to a variable of integer type or word type which will store the current hour.
  2. The second parameter is a reference to a variable of integer type or word type which will store the current minute.
  3. The third parameter is a reference to a variable of integer type or word type which will store the current second.

Example

Suppose the current system time is 2:45:05 P.M. then after:

    gettime(hour, minute, second)

    hour = 14
    minute = 45
    second = 5

Portability

Operating Systems: All
Standard Pascal: No