A beginner entering c + + under the gate would like to ask you
Seconds, such as how to get the current time now is five points and 14 seconds at 4 PM and I need to get the 14 seconds
Baidu online is to write a lot of,,
Whenever I get seconds, is there a simple point,
CodePudding user response:
And call the time function can obtain
#include
CTime time (CTime: : GetCurrentTime ());
SYSTEMTIME timeDest;
Time. GetAsSystemTime (timeDest);
Output calendar (timeDest wYear, timeDest wMonth, timeDest. WDay);
CodePudding user response:
