Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char buff[100];
- time_t rawtime;
- struct tm * timeinfo;
- time(&rawtime);
- timeinfo = localtime(&rawtime);
- sprintf(buff, "[%d %d %d %d:%d:%d]", timeinfo->tm_mday, timeinfo->tm_mon + 1, timeinfo->tm_year + 1900, timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec);
- OutputDebugString(LPCWSTR(buff));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement