#includeThis code gets the current calendar time using the time() function, then passes that value to the localtime() function to get a struct tm object representing the local time. Finally, the asctime() function is used to convert the struct tm object to a human-readable string. The Time library comes standard with C++, so no additional package needs to be installed.#include int main() { std::time_t result = std::time(nullptr); std::cout << std::asctime(std::localtime(&result)); return 0; }