$date = time(); $formatted_time = strftime("%A %B %d, %Y %H:%M:%S", $date); echo $formatted_time;This code will output something like: "Saturday August 14, 2021 11:59:00" In this example, the strftime function is used to format the timestamp returned by the time() function. The first parameter of the strftime function is a string representing the desired format for the date and time. The second parameter is the Unix timestamp to format. The strftime function is part of the PHP Date library, which provides a variety of functions for working with dates and times in PHP.