Sign in Join
FPDoc Onlineexperiment

SetTime procedure

In unit Dos

Set system time.

Declaration

pascal
procedure SetTime(hour: Word; minute: Word; second: Word; sec100: Word)

Description

SetTime sets the system's internal clock. The Hour parameter is on a 24-hour time scale.

On a Linux machine, there must be root privileges, otherwise this routine will do nothing. On other Unix systems, this call currently does nothing.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.