stime(2) System Calls Manual stime(2)NAME
stime() - set time and date
The system call sets the system time and date. tp points to the value of time as measured in seconds from 00:00:00 on January 1, 1970,
Coordinated Universal Time (UTC).
Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser will have this privi-
lege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information
about privileged access on systems that support fine-grained privileges.
returns the following values:
is set to indicate the error.
If fails, is set to one of the following values.
The calling process does not have the
The parameter points to an invalid (negative) time value.
The parameter is an invalid address.
SEE ALSO date(1), gettimeofday(2), time(2), privileges(5).
STANDARDS CONFORMANCE stime(2)
Check Out this Related Man Page
getaudid(2) System Calls Manual getaudid(2)NAME
getaudid() - get the audit ID (aid) for the current process
This function is provided purely for backward compatibility. HP recommends that new applications use instead. See getauduser(3).
returns the audit ID (aid) for the current process. This call is restricted to users with the privilege.
Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser have this privilege.
Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about
privileged access on systems that support fine-grained privileges.
Upon successful completion, the audit ID is returned; otherwise, a is returned.
fails if the following is true:
The caller does not have the
was developed by HP.
SEE ALSO setaudid(2), getauduser(3), setauduser(3), privileges(5).
TO BE OBSOLETED getaudid(2)
I wish to set the time and date of the system from my application. (I write code in C ).
How can it be done?
I found the function stime() - but it gets time in seconds as a parameter, and I don't know how to convert my time & date to seconds since EPOCH.
What's the best... (0 Replies)
I have been trying to complete a shell script where, I need to increment the date depending on the file (depending on the date) availability on the remote server.
Basically, I will be passing a counter (like parameter 1 or 2 or 3 or 4).
First I will check for the... (1 Reply)
how to get the same time in two systems,
in one system i have the correct time, and second system i have wrong time.
now i want the first sytem to second sytem, i dont to want to do this work manually.
i know there is one command to get the time. in ntp.
... (3 Replies)
Frineds I need assistance in writing a script . Newbie to scripting.
How to find list of processes that are running more than an hour . Below i used the step to get the etime and stime . Now by getting the result i need to display longer time process with full listing.
ps -aef -o... (10 Replies)
I am trying to reset the date and time since the change in time over the weekend. I cannot issue the command date -t 201703131330.
The system gives me an error invalid option.
This happens on my SCO OpenServer 5.0.7 and 5.0.6. Do anyone have an idea why? I even tried using... (6 Replies)