use standard functions
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
RageLog* LOG; // global and accessable from anywhere in the program
|
RageLog* LOG; // global and accessable from anywhere in the program
|
||||||
|
|
||||||
@@ -63,10 +64,12 @@ RageLog::RageLog()
|
|||||||
this->Trace( "Last compiled on %s.", __TIMESTAMP__ );
|
this->Trace( "Last compiled on %s.", __TIMESTAMP__ );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SYSTEMTIME st;
|
time_t cur_time;
|
||||||
GetLocalTime( &st );
|
time(&cur_time);
|
||||||
|
const struct tm *now = localtime(&cur_time);
|
||||||
|
|
||||||
this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d",
|
this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d",
|
||||||
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond );
|
1900+now->tm_year, now->tm_mon, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec );
|
||||||
this->Trace( "" );
|
this->Trace( "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user