NO need to post, i found it already thanks...

/* asctime example */
#include <stdio.h>
#include <time.h>

int main ()
{
time_t rawtime;
struct tm * timeinfo;

time ( &rawtime );
timeinfo = localtime ( &rawtime );
printf ( "Current date and time are: %s", asctime (timeinfo) );

return 0;
}
Thanks too http://www.cplusplus.com/ref/ctime/