TIME

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
BSD 4  

NAME

time - get time of day  

SYNOPSIS

Fd #include <time.h> Ft time_t Fn time time_t *tloc  

DESCRIPTION

The Fn time function returns the value of time in seconds since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time.

A copy of the time value may be saved to the area indicated by the pointer Fa tloc . If Fa tloc is a NULL pointer, no value is stored.

Upon successful completion, Fn time returns the value of time. Otherwise a value of Po Po Fa time_t Pc -1 Pc is returned and the global variable errno is set to indicate the error.  

ERRORS

The following error codes may be set in errno

Bq Er EFAULT
An argument address referenced invalid memory.
 

SEE ALSO

gettimeofday(2), ctime(3)  

HISTORY

A Fn time function appeared in AT&T System v6 .


 

Index

NAME
SYNOPSIS
DESCRIPTION
ERRORS
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 21:44:08 GMT, August 05, 2022