#include<iostream> #include<ctime> using namespace std; int main() { time_t now = time(0); //Convert time to string form char *tm = ctime(&now); cout << "Time of System is: " << tm << endl; system("pause"); return 0; }<pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)