Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. char buff[100];
  2. time_t rawtime;
  3. struct tm * timeinfo;
  4. time(&rawtime);
  5. timeinfo = localtime(&rawtime);
  6.  
  7. 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);
  8. OutputDebugString(LPCWSTR(buff));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement