DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

time(S)


time -- get time

Synopsis

   #include <sys/types.h>
   #include <time.h>
   

time_t time(time_t *tloc);

Description

time returns the value of time in seconds since 00:00:00 UTC, January 1, 1970.

If tloc is non-zero, the return value is also stored in the location to which tloc points.

Return values

On success, time returns the number of seconds since 00:00:00 UTC, January 1, 1970. On failure, time returns (time_t)-1 and sets errno to identify the error.

References

ctime(S), gettimeofday(S), stime(S)

Notices

time fails and its actions are undefined if tloc points to an illegal address.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005