phph date

include

include

using namespace std;

int main() { // Get the current time using the time() function time_t now = time(0);

// Convert the current time to a string using the ctime() function
char* dt = ctime(&now);

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

return 0;

}