リファレンス URL:date_get_year

「実数型 (real)」として戻り値。

date_current_datetime()と組み合わせて使う。

1970 年 1 月 1 日午前 0 時( UNIX 元年の元旦 )から経過したミリ秒を西暦に変換する関数。

タイムゾーンはデフォルトでローカルタイム(地方時間)が選択されている。

スクリプト・サンプル
myyear = date_get_year(date_current_datetime()); //「 2015 (現在の西暦)」が返る //西暦1970年1月1日 var a=25569.0001; var b,unix; unix[0]=date_get_year(a); unix[1]=date_get_month(a); unix[2]=date_get_day_of_year(a); unix[3]=date_get_hour_of_year(a); unix[4]=date_get_minute_of_year(a); unix[5]=date_get_second_of_year(a); b=array_length_1d(unix); for (var i=0; i<b; i++) draw_text(0,i*30,unix[i]);
Functions/date_get_year
WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.