|
This example shows a
sample usage for the Ctime function
to display the date and time.
/*using the ctime function*/
#include <stdio.h>
#include <time.h>
int main()
{
time_t tm;
tm = time(NULL);
printf(ctime(&tm));
return 0;
}
Information
This was tested on Visual C++ 6 and
LCC Win 32
|