运行 ❯
获取您自己的
PHP
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php // Prints the day echo gmdate("l") . "<br>"; // Prints the day, date, month, year, time, AM or PM echo gmdate("l jS \of F Y h:i:s A") . "<br>"; // Prints October 3, 1975 was on a Thursday echo "Oct 3, 1975 was on a ".gmdate("l", mktime(0,0,0,10,3,1975)) . "<br>"; // Use a constant in the format parameter echo gmdate(DATE_RFC822) . "<br>"; // prints something like: 1975-10-03T00:00:00+00:00 echo gmdate(DATE_ATOM,mktime(0,0,0,10,3,1975)); ?> </body> </html>