PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

cal_info> <cal_days_in_month
Last updated: Fri, 05 Sep 2008

view this page in

cal_from_jd

(PHP 4 >= 4.0.7, PHP 5)

cal_from_jdユリウス積算日からサポートされるカレンダーに変換する

説明

array cal_from_jd ( int $jd , int $calendar )

cal_from_jd() は、 jd で指定したユリウス日を 指定した calendar に変換します。 サポートされる calendar の値は、 CAL_GREGORIANCAL_JULIANCAL_JEWISH および CAL_FRENCH です。

パラメータ

jd

ユリウス日を表す整数値。

calendar

変換するカレンダー。

返り値

カレンダーの情報を含む配列を返します。この配列には、 年、月、日、週、曜日名、月名、"月/日/年" 形式の文字列 などが含まれます。

例1 cal_from_jd() の例

<?php
$today 
unixtojd(mktime(0008162003));
print_r(cal_from_jd($todayCAL_GREGORIAN));
?>

上の例の出力は以下となります。

Array
(
    [date] => 8/16/2003
    [month] => 8
    [day] => 16
    [year] => 2003
    [dow] => 6
    [abbrevdayname] => Sat
    [dayname] => Saturday
    [abbrevmonth] => Aug
    [monthname] => August
)



add a note add a note User Contributed Notes
cal_from_jd
There are no user contributed notes for this page.

cal_info> <cal_days_in_month
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites