cpp set 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);

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

return 0;

}