Go to the previous, next section.

stime

SYNOPSIS

int stime(time_t *t);

PARAMETERS

t: [in] the new time.

DESCRIPTION

Sets the time and date of the system. t is measured in seconds since 00:00:00 GMT January 1, 1970. The calling task must have superuser privileges for the call to succeed.

RETURN VALUE

On success zero is returned. On error -1 is returned and errno is set to EPERM because the calling task did not have superuser privileges.

Go to the previous, next section.