<?php header("Content-type: text/html; charset=utf-8"); date_default_timezone_set("Asia/Tokyo"); $now = getdate(); echo $now["year"] . "年"; echo $now["mon"] . "月"; echo $now["mday"] . "日"; echo $now["weekday"]; echo $now["hours"] . "時"; echo $now["minutes"] . "分"; echo $now["seconds"] . "秒"; echo "今年の" . $now["yday"] . "日目"; ?>