This is completely my source so if you use it give credits.
[php]#include <time.h>
struct tm * current_tm;
time_t current_time;time (¤t_time);
current_tm = localtime (¤t_time);
char *month []={"January","February","March","April","Mai","June ","July","August","September","October","November" ,"December"};
char *Day []={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
char *Hour []={"12","1","2","3","4","5","6","7","8","9","10","1 1","12","1","2","3","4","5","6","7","8","9","10"," 11"};
char *Sec []={"00","01","02","03","04","05","06","07","08","09 ","10","11","12","13","14","15","16","17","18","19 ","20","21","22","23","24","25","26","27","28","29 ","30","31","32","33","34","35","36","37","38","39 ","40","41","42","43","44","45","46","47","48","49 ","50","51","52","53","54","55","56","57","58","59 "};
char *Min []={"00","01","02","03","04","05","06","07","08","09 ","10","11","12","13","14","15","16","17","18","19 ","20","21","22","23","24","25","26","27","28","29 ","30","31","32","33","34","35","36","37","38","39 ","40","41","42","43","44","45","46","47","48","49 ","50","51","52","53","54","55","56","57","58","59 "};
char *logbuf = new char[ 256 ];
sprintf( logbuf, "%s %s %02dth %d || %s:%s:%s",Day[current_tm->tm_wday], month[current_tm->tm_mon], current_tm->tm_mday, current_tm->tm_year+1900, Hour[current_tm->tm_hour], Min[current_tm->tm_min], Sec[current_tm->tm_sec]);
[/php]And you can say this is kind of noob proof lol
And this is what it looks like.