Unix/Linux Go Back    

NetBSD 6.1.5 - man page for timeoff (netbsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

OFFTIME(3)			   BSD Library Functions Manual 		       OFFTIME(3)

     offtime, timeoff, timegm, timelocal -- convert date and time

     Standard C Library (libc, -lc)

     #include <time.h>

     struct tm *
     offtime(const time_t * clock, long int offset);

     struct tm *
     offtime_r(const time_t * clock, long int offset, struct tm *ret);

     timeoff(struct tm * tm, long int offset);

     timegm(struct tm * tm);

     timelocal(struct tm * tm);

     These functions are inspired by C standard interfaces named similarly.

     offtime() converts the calendar time clock, offset by offset seconds, into broken-down time,
     expressed as Coordinated Universal Time (UTC).

     offtime_r() is similar to offtime() but it places the returned struct tm * in the user sup-
     plied ret argument.

     timeoff() converts the broken-down time tm, expressed as UTC, offset by offset seconds, into
     a calendar time value.

     timegm() converts the broken-down time tm into a calendar time value, effectively being the
     inverse of gmtime(3).  It is equivalent to the C standard function mktime(3) operating in

     timelocal() converts the broken down time tm, expressed as local time, into a calendar time
     value.  It is equivalent to the C standard function mktime(3), and is provided for symmetry

     ctime(3), tm(3), tzset(3)

BSD					  April 14, 2011				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 07:02 PM.