Using the Ctime function
This example shows a sample usage for the Ctime function to display the date and time.
/*using the ctime function*/
tm = time(NULL);
This was tested on Visual C++ 6 and LCC Win 32