Returns the current system calendar time.
#include <time.h> time_t time(time_t *t);
t
A pointer to time value or NULL.
This function returns the computer system's calendar time. If t is not a null pointer, the calendar time is also assigned to the item it points to.
The function returns the system current calendar time.
This facility may not be available on some configurations of the EWL.
#include <time.h> #include <stdio.h> int main(void) { time_t systime; systime = time(NULL); puts(ctime(&systime)); return 0; } Output: Tue Nov 30 13:06:47 1993