time

Returns the time (expressed as Universal Coordinated Time) elapsed since 00:00:00, January 1, 1970, in seconds.

Format

#include  <time.h>

time_t time  (time_t *time_location);
Function Variants Compiling with the _DECC_V4_SOURCE and _VMS_V6_SOURCE feature- test macros defined enables a local-time-based entry point to this function that is equivalent to the behavior before OpenVMS Version 7.0.

Argument

time_location
Either NULL or a pointer to the place where the returned time is also stored. The time_t type is defined in the <time.h> header file as follows:
typedef unsigned long int time_t;

Return Values
The time elapsed past the epoch. 
(time_t)(-1)  Indicates an error. 


Previous Page | Next Page | Table of Contents | Index