programming.nbk: Home | Index | Next Page: time_t mktime(struct tm* timeptr); | Previous Page: Tcl: while


 time_t

Time type

Type capable of representing times and support arithmetical operations.

This type is returned by the time function and is used as parameter by some other functions of the header.

It is almost universally expected to be an integral value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC. This is due to historical reasons, since it corresponds to a unix timestamp, but is widely implemented in C libraries across all platforms.

From time.h:

/*
 * A type for storing the current time and date. This is the number of
 * seconds since midnight Jan 1, 1970.
 * NOTE: This is also defined in non-ISO sys/types.h.
 */

programming.nbk: Home | Index | Next Page: time_t mktime(struct tm* timeptr); | Previous Page: Tcl: while


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time