<!DOCTYPE html>
<html>
<body>
<?php
// 输出周几
echo gmdate("l") . "<br>";
// 输出周几、日、月、年,时间,上午或下午
echo gmdate("l jS \of F Y h:i:s A") . "<br>";
// 输出 October 3, 1975 was on a Friday
echo "Oct 3, 1975 was on a ".gmdate("l", mktime(0,0,0,10,3,1975)) . "<br>";
// 在 format 参数中使用常量
echo gmdate(DATE_RFC822) . "<br>";
// 输出类似:1975-10-03T00:00:00+00:00
echo gmdate(DATE_ATOM,mktime(0,0,0,10,3,1975));
?>
</body>
</html>