c++ get 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);
std::cout << "The local date and time is: " << dt << std::endl;
return 0; }
int main() { // current date/time based on current system time_t now = time(0);
// convert now to string form char* dt = ctime(&now);
std::cout << "The local date and time is: " << dt << std::endl;
return 0; }