hpux man page for setclock

Query: setclock

OS: hpux

Section: 3c

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

setclock(3C)															      setclock(3C)

NAME
setclock - set value of system-wide clock
SYNOPSIS
DESCRIPTION
The function sets the current value of the specified system-wide clock, supports a of defined in which represents the time-of-day clock for the system. For this clock, the values returned by represent the amount of time since the Epoch. The calling process must have appropriate privileges to set the clock.
RETURN VALUE
Upon successful completion, returns a value of zero; otherwise it returns -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered: [EINVAL] does not specify a known system-wide clock, or either is outside the range for a given clock type, or it specifies a nanosecond value less than zero or greater than or equal to 1000 million. [EIO] An error occurred while accessing the clock device. [EPERM] The requesting process does not have the required appropriate privileges to set the specified clock.
FILES
SEE ALSO
clocks(2), getclock(3C), gettimer(3C), thread_safety(5).
STANDARDS CONFORMANCE
setclock(3C)
Related Man Pages
clock_settime(3rt) - sunos
clock_gettime(2) - hpux
reltimer(3c) - hpux
clock_gettime(3) - osf1
setclock(3c) - hpux
Similar Topics in the Unix Linux Community
*nix Desktops
Extract TIME
Bugs with clock()
Timekeeping in Linux question ...
Calculating Total Hours worked