PHP:日付関連の組み込み関数、現在日付の取得

second —- 現在の秒を定義する
mimutes — 現在の分定義する
hours —– 現在の時定義する
mday —— 現在の月次の日付を定義する
wday —— 現在の曜日番号を定義する
mon ——- 現在の月を定義する
year —— 現在の年を定義する
yday —— その年の通算日を定義する
weekday — 現在の曜日の文字列を定義する
month ——- 現在の月の文字列を定義する
$today = getdate();
print(“$today[year]年$today[mon]月$today[mday]日
\n”);
http://www.scollabo.com/banban/php/php_12.html


その他

タイトルとURLをコピーしました