reference/calendar/functions/easter-days.xml
789af834328bf5d492ed174a4fedb226ccaf4b27
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>easter_days</methodname>
13
-
<methodparam choice="opt"><type>int</type><parameter>year</parameter><initializer>date("Y")</initializer></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>method</parameter><initializer>CAL_EASTER_DEFAULT</initializer></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>year</parameter><initializer>&null;</initializer></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>CAL_EASTER_DEFAULT</constant></initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Returns the number of days after March 21 on which Easter falls
...
...
@@ -49,19 +49,18 @@
49
49
<term><parameter>year</parameter></term>
50
50
<listitem>
51
51
<para>
52
-
The year as a positive number. If omitted, defaults to the
52
+
The year as a positive number. If omitted or &null;, defaults to the
53
53
current year according to the local time.
54
54
</para>
55
55
</listitem>
56
56
</varlistentry>
57
57
<varlistentry>
58
-
<term><parameter>method</parameter></term>
58
+
<term><parameter>mode</parameter></term>
59
59
<listitem>
60
60
<para>
61
61
Allows Easter dates to be calculated based
62
62
on the Gregorian calendar during the years 1582 - 1752 when set to
63
-
<constant>CAL_EASTER_ROMAN</constant>. See the <link
64
-
linkend="calendar.constants">calendar constants</link> for more valid
63
+
<constant>CAL_EASTER_ROMAN</constant>. See the <link linkend="calendar.constants">calendar constants</link> for more valid
65
64
constants.
66
65
</para>
67
66
</listitem>
...
...
@@ -78,6 +77,28 @@
78
77
</para>
79
78
</refsect1>
80
79

80
+
<refsect1 role="changelog">
81
+
&reftitle.changelog;
82
+
<informaltable>
83
+
<tgroup cols="2">
84
+
<thead>
85
+
<row>
86
+
<entry>&Version;</entry>
87
+
<entry>&Description;</entry>
88
+
</row>
89
+
</thead>
90
+
<tbody>
91
+
<row>
92
+
<entry>8.0.0</entry>
93
+
<entry>
94
+
<parameter>year</parameter> is nullable now.
95
+
</entry>
96
+
</row>
97
+
</tbody>
98
+
</tgroup>
99
+
</informaltable>
100
+
</refsect1>
101
+

81
102
<refsect1 role="examples">
82
103
&reftitle.examples;
83
104
<para>
...
...
@@ -107,7 +128,6 @@ echo easter_days(1913); // 2, i.e. March 23
107
128
</para>
108
129
</refsect1>
109
130
</refentry>
110
-

111
131
<!-- Keep this comment at the end of the file
112
132
Local variables:
113
133
mode: sgml
114
134