02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

time (2) time(2)<br />

NAME<br />

time - get time<br />

SYNOPSIS<br />

finclude <br />

time_t time ( (/ong*) 0)<br />

time t time (tloc)<br />

time=t *tloci<br />

DESCRIPTION<br />

time returns the value of time in seconds since 00:00:00 GMT,<br />

January 1, 1970.<br />

If tloc (taken as an integer) is nonzero, the return value is also<br />

stored in the location to which tloc points.<br />

RETURN VALUE<br />

On successful completion, time returns the value of time. Otherwise,<br />

a value of -1 is returned and errno is set to indicate the error.<br />

ERRORS<br />

time will fail if the following is true<br />

[EFAULT] tloc points to an illegal address.<br />

SEE ALSO<br />

date(I), gettimeofday(2), stime(2), ctime(3).<br />

1 February, 1990<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!