c++ print current time

include

include

int main() { // current date/time based on current system time_t now = time(0);

// convert now to string form char* dt = ctime(&now);

// print the current date and time std::cout << "The local date and time is: " << dt << std::endl;

return 0; }