Content-type: text/html Man page of time

time

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

NAME

time - Gets time  

LIBRARY

Standard C Library (libc.so, libc.a)  

SYNOPSIS

#include <time.h>

time_t time(
        time_t *tloc);  

PARAMETERS

Points to the location where the return value is stored. When this parameter is a null pointer, no value is stored.  

DESCRIPTION

The time() function returns the time in seconds since the Epoch. The Epoch is referenced to 00:00:00 CUT (Coordinated Universal Time) 1 Jan 1970.  

RETURN VALUES

Upon successful completion, the time() function returns the value of time in seconds since the Epoch. Otherwise, the value (time_t)-1 is returned.  

RELATED INFORMATION

Functions: gettimeofday(2), clock(3), ctime(3), difftime(3), stime(3), strftime(3), strptime(3)

Standards: standards(5) delim off


 

Index

NAME
LIBRARY
SYNOPSIS
PARAMETERS
DESCRIPTION
RETURN VALUES
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:42:13 GMT, October 02, 2010