★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.easter-date.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to カレンダー
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
カレンダー
* JDToGregorian
* GregorianToJD
* JDToJulian
* JulianToJD
* JDToJewish
* JewishToJD
* JDToFrench
* FrenchToJD
* JDMonthName
* JDDayOfWeek
* easter_date
* easter_days
* unixtojd
* jdtounix
Manual: easter_date
View the source code for this pageSearch the site



Previous page
 JDDayOfWeek
 Updated
Sat, 12 Aug 2000
easter_days 
Next page


easter_date

(PHP3 >= 3.0.9, PHP4 >= 4.0RC2)

easter_date --  指定した年における復活祭の真夜中のUNIX時を得る

説明

int easter_date (int year)

指定した年yearにおける復活祭の真夜中のUNIX時を返します。 yearが指定されない場合、現在の年が仮定されます。

警告: この関数は、指定した年がUNIX時の 範囲外(すなわち1970年以前か2037年以降)である場合に警告を 生成します。

例 1. easter_date()の例


echo date ( "M-d-Y", easter_date(1999));        /* "1999/4/04" */
echo date ( "M-d-Y", easter_date(2000));        /* "2000/4/23" */
echo date ( "M-d-Y", easter_date(2001));        /* "2001/4/15" */
      

復活祭の日付は、西暦325年の Nicaea 会議で春分の日の後の 最初の満月の後の日曜日として定められました。 満月とその次の日曜日の日付の計算を簡単にするために 春分の日は常に3月21日になるとして計算されます。 ここで用いるアルゴリズムは、532年頃、Dionysius Exiguus により 導出されたものです。(1753年より前の年に関して)ユリウス暦の元では 月の周期を追うために簡単な19年周期が用いられます。グレゴリウス暦 (1753年以降。この暦は、ClaviusとLiliusにより考案され、 教皇グレゴリウス13世により1582年10月に導入、イギリス及びその植民地に 1752年9月に導入された。) のもとで、二つの補正係数が周期をより正確に作成するために追加されました。

(このコードは、Simon Kershaw, <webmaster@ely.anglican.org>によるCプログラムに基づくものです。)

1970年以前または2037年以降の復活祭の計算に関しては、 easter_days() を参照ください。


 About Notes


Previous page
 JDDayOfWeek
 Updated
Sat, 12 Aug 2000
easter_days 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.