Query: settimeofda
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
settimeofday(2) System Calls Manual settimeofday(2)NAMEsettimeofday - set the date and timeSYNOPSISDESCRIPTIONThe function sets the current time, expressed as seconds and microseconds since Epoch, and passed as the structure pointed to by tp. The resolution of the system clock is one microsecond. Security Restrictions Setting the time of day requires the privilege (SYSATTR). Processes owned by the superuser will 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.PARAMETERStp A pointer to a structure in which the current time is returned. The structure includes the following members: tzp If this parameter is not a null pointer, it is interpreted as a pointer to a structure under HP-UX. The structure has the following fields: tz_minuteswest The number of minutes that the local time zone is west of Coordinated Universal Time (UTC) or Epoch. tz_dsttime A flag that, if nonzero, indicates that Daylight Savings Time (DST) applies locally during the appropriate part of the year.RETURN VALUEreturns the following values under HP-UX: Successful completion. Failure. is set to indicate the error.ERRORSIf fails, is set to the following value under HP-UX: An argument address referenced invalid memory. The member of the tp parameter to was less than zero or greater than 2^31. A user lacking appropriate privileges attempted to set the time.WARNINGSRelying on a granularity of one microsecond may result in code that is not portable to other platforms.AUTHORwas developed by the University of California, Berkeley, and HP.SEE ALSOdate(1), ftime(2), gettimeofday(2), stime(2), time(2), ctime(3C), privileges(5). settimeofday(2)
Related Man Pages |
---|
settimeofda(2) - hpux |
settimeofday(3c) - sunos |
gettimeofday(3c) - x11r4 |
gettimeofday(3c) - xfree86 |
settimeofday(3c) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
Daylight Savings - Timezones etc... |
The Switch to DST 2007 --- How Did It Go? |
How to set the Daylight Saving Time (DST) OFF |
Gettimeofday problem |
Auto resetting for Daylight Savings Time |