[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'oldlinux' (#rtl)

SetDate

Set the current system date.

Declaration

Source position: oldlinux.pp line 1326

function SetDate(

  Year: Word;

  Month: Word;

  Day: Word

):Boolean;

Description

SetDatesets the system date to year, month, day. This is the kernel date, so it is in GMT. The time is not touched. The function returns Trueif the call was executed corretly, Falseotherwise.

Remark: You must be root to execute this call.

Errors

Errors are returned in LinuxError

See also

GetDate

  

Return the system date

SetTime

  

Set the current system time.

SetDateTime

  

Set the current system date and time