NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libc.a #include <time.h>time_t time(time_t *tloc);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The time() function returns the value of time in seconds since Epoch (00:00:00 UTC, January 1, 1970).
The tloc argument points to an area where the return value is also stored. If tloc is a NULL pointer, no value is stored.
The time() function relies on the univTime(2K) call to retrieve the current time. If the time was not set properly at system initialization (see univTime(2K)), time() returns a value of -1, otherwise the value of time is returned.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
MT-Level | Async-Signal-Safe |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO