Sponsored Content
Full Discussion: A little help please
Top Forums Shell Programming and Scripting A little help please Post 302145633 by immyakram on Wednesday 14th of November 2007 09:56:08 PM
Old 11-14-2007
Got it thanks a million matey. Smilie
 
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)
All times are GMT -4. The time now is 12:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy