如何将SYSTEMTIME转换为字符串
SYSTEMTIME里的成员都是WORD型的,请问该如何转换为char*型字符串?而且有更简单的获得时间并转换为字符串的方法吗,不用MFC的。
[解决办法]
time_t now;
struct tm *today;
now = time( &now );
char tmpbuf[128];
today = localtime( &now );
strftime(tmpbuf, 128, "%H:%M:%S\n ", today );