TIME - obtain time of day as a number.
(ANSI Standard)
Usage:
#include <time.h>
timenum = time(timeptr);
Where:
- time_t *timeptr;
- points to a location in memory that can hold a time
number. The number returned by "time" will also
be stored in this location. If "timeptr" is a
null pointer, as in
timenum = time( NULL );
"time" will not attempt to store the time
number in this way.
- time_t timenum;
- is a number representing a given time and date.
Description:
"time" returns the time of day as a number. The
"time_t" type is defined in <time.h>. This number
can be converted to a more intelligible time format using
"ctime" or "localtime".
See Also:
expl c lib ctime
expl c lib localtime
Copyright © 1996, Thinkage Ltd.