3
我知道我可以做到这一点,如果我有一个struct tm结构,但是如果我想用SYSTEMTIME做同样的事情。我可以手动做到这一点,但只是想知道是否有这样做的功能。是否有像asctime_s()这样的函数可用于Windows中的SYSTEMTIME结构?
感谢
void PrintTimeSCII(struct tm *time)
{
char timebuf[26] = {0};
asctime_s(timebuf, 26, time);
printf("%s\n", timebuf);
}