Sign in Join
FPDoc Onlineexperiment

SetDate procedure

In unit Dos

Set system date.

Declaration

pascal
procedure SetDate(year: Word; month: Word; day: Word)

Description

SetDate sets the system's internal date. Year is a number between 1980 and 2099.

On a Unix 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.