reference/calendar/constants.xml
5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c
...
...
@@ -4,250 +4,260 @@
4
4
&reftitle.constants;
5
5
&extension.constants;
6
6
<variablelist>
7
-
<varlistentry xml:id="constant.cal-gregorian">
7
+
<varlistentry xml:id="constant.cal-easter-default">
8
8
<term>
9
-
<constant>CAL_GREGORIAN</constant>
10
-
(<type>integer</type>)
9
+
<constant>CAL_EASTER_DEFAULT</constant>
10
+
(<type>int</type>)
11
11
</term>
12
12
<listitem>
13
13
<simpara>
14
-

14
+
For <function>easter_days</function>: calculate Easter for years before
15
+
1753 according to the Julian calendar, and for later years according to the
16
+
Gregorian calendar.
15
17
</simpara>
16
18
</listitem>
17
19
</varlistentry>
18
-
<varlistentry xml:id="constant.cal-julian">
20
+
<varlistentry xml:id="constant.cal-easter-roman">
19
21
<term>
20
-
<constant>CAL_JULIAN</constant>
21
-
(<type>integer</type>)
22
+
<constant>CAL_EASTER_ROMAN</constant>
23
+
(<type>int</type>)
22
24
</term>
23
25
<listitem>
24
26
<simpara>
25
-

27
+
For <function>easter_days</function>: calculate Easter for years before
28
+
1583 according to the Julian calendar, and for later years according to the
29
+
Gregorian calendar.
26
30
</simpara>
27
31
</listitem>
28
32
</varlistentry>
29
-
<varlistentry xml:id="constant.cal-jewish">
33
+
<varlistentry xml:id="constant.cal-easter-always-gregorian">
30
34
<term>
31
-
<constant>CAL_JEWISH</constant>
32
-
(<type>integer</type>)
35
+
<constant>CAL_EASTER_ALWAYS_GREGORIAN</constant>
36
+
(<type>int</type>)
33
37
</term>
34
38
<listitem>
35
39
<simpara>
36
-
40
+
For <function>easter_days</function>: calculate Easter according to the
41
+
proleptic Gregorian calendar.
37
42
</simpara>
38
43
</listitem>
39
44
</varlistentry>
40
-
<varlistentry xml:id="constant.cal-french">
45
+
<varlistentry xml:id="constant.cal-easter-always-julian">
41
46
<term>
42
-
<constant>CAL_FRENCH</constant>
43
-
(<type>integer</type>)
47
+
<constant>CAL_EASTER_ALWAYS_JULIAN</constant>
48
+
(<type>int</type>)
44
49
</term>
45
50
<listitem>
46
51
<simpara>
47
-
52
+
For <function>easter_days</function>: calculate Easter according to the
53
+
Julian calendar.
48
54
</simpara>
49
55
</listitem>
50
56
</varlistentry>
51
-
<varlistentry xml:id="constant.cal-num-cals">
57
+
<varlistentry xml:id="constant.cal-gregorian">
52
58
<term>
53
-
<constant>CAL_NUM_CALS</constant>
54
-
(<type>integer</type>)
59
+
<constant>CAL_GREGORIAN</constant>
60
+
(<type>int</type>)
55
61
</term>
56
62
<listitem>
57
63
<simpara>
58
-
64
+
For <function>cal_days_in_month</function>,
65
+
<function>cal_from_jd</function>, <function>cal_info</function> and
66
+
<function>cal_to_jd</function>: use the proleptic Gregorian calendar.
59
67
</simpara>
60
68
</listitem>
61
69
</varlistentry>
62
-
<varlistentry xml:id="constant.cal-dow-dayno">
70
+
<varlistentry xml:id="constant.cal-julian">
63
71
<term>
64
-
<constant>CAL_DOW_DAYNO</constant>
65
-
(<type>integer</type>)
72
+
<constant>CAL_JULIAN</constant>
73
+
(<type>int</type>)
66
74
</term>
67
75
<listitem>
68
76
<simpara>
69
-
77
+
For <function>cal_days_in_month</function>,
78
+
<function>cal_from_jd</function>, <function>cal_info</function> and
79
+
<function>cal_to_jd</function>: use the Julian calendar.
70
80
</simpara>
71
81
</listitem>
72
82
</varlistentry>
73
-
<varlistentry xml:id="constant.cal-dow-short">
83
+
<varlistentry xml:id="constant.cal-jewish">
74
84
<term>
75
-
<constant>CAL_DOW_SHORT</constant>
76
-
(<type>integer</type>)
85
+
<constant>CAL_JEWISH</constant>
86
+
(<type>int</type>)
77
87
</term>
78
88
<listitem>
79
89
<simpara>
80
-
90
+
For <function>cal_days_in_month</function>,
91
+
<function>cal_from_jd</function>, <function>cal_info</function> and
92
+
<function>cal_to_jd</function>: use the Jewish calendar.
81
93
</simpara>
82
94
</listitem>
83
95
</varlistentry>
84
-
<varlistentry xml:id="constant.cal-dow-long">
96
+
<varlistentry xml:id="constant.cal-french">
85
97
<term>
86
-
<constant>CAL_DOW_LONG</constant>
87
-
(<type>integer</type>)
98
+
<constant>CAL_FRENCH</constant>
99
+
(<type>int</type>)
88
100
</term>
89
101
<listitem>
90
102
<simpara>
91
-
103
+
For <function>cal_days_in_month</function>,
104
+
<function>cal_from_jd</function>, <function>cal_info</function> and
105
+
<function>cal_to_jd</function>: use the French Repuclican calendar.
92
106
</simpara>
93
107
</listitem>
94
108
</varlistentry>
95
-
<varlistentry xml:id="constant.cal-month-gregorian-short">
109
+
<varlistentry xml:id="constant.cal-num-cals">
96
110
<term>
97
-
<constant>CAL_MONTH_GREGORIAN_SHORT</constant>
98
-
(<type>integer</type>)
111
+
<constant>CAL_NUM_CALS</constant>
112
+
(<type>int</type>)
99
113
</term>
100
114
<listitem>
101
115
<simpara>
102
-
116
+
The number of available calendars.
103
117
</simpara>
104
118
</listitem>
105
119
</varlistentry>
106
-
<varlistentry xml:id="constant.cal-month-gregorian-long">
120
+
<varlistentry xml:id="constant.cal-jewish-add-alafim-geresh">
107
121
<term>
108
-
<constant>CAL_MONTH_GREGORIAN_LONG</constant>
109
-
(<type>integer</type>)
122
+
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>
123
+
(<type>int</type>)
110
124
</term>
111
125
<listitem>
112
126
<simpara>
113
-
127
+
For <function>jdtojewish</function>: adds a geresh symbol (which resembles
128
+
a single-quote mark) as thousands separator to the year number.
114
129
</simpara>
115
130
</listitem>
116
131
</varlistentry>
117
-
<varlistentry xml:id="constant.cal-month-julian-short">
132
+
<varlistentry xml:id="constant.cal-jewish-add-alafim">
118
133
<term>
119
-
<constant>CAL_MONTH_JULIAN_SHORT</constant>
120
-
(<type>integer</type>)
134
+
<constant>CAL_JEWISH_ADD_ALAFIM</constant>
135
+
(<type>int</type>)
121
136
</term>
122
137
<listitem>
123
138
<simpara>
124
-
139
+
For <function>jdtojewish</function>: adds the word alafim as thousands
140
+
separator to the year number.
125
141
</simpara>
126
142
</listitem>
127
143
</varlistentry>
128
-
<varlistentry xml:id="constant.cal-month-julian-long">
144
+
<varlistentry xml:id="constant.cal-jewish-add-gereshayim">
129
145
<term>
130
-
<constant>CAL_MONTH_JULIAN_LONG</constant>
131
-
(<type>integer</type>)
146
+
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>
147
+
(<type>int</type>)
132
148
</term>
133
149
<listitem>
134
150
<simpara>
135
-
151
+
For <function>jdtojewish</function>: add a gershayim symbol (which
152
+
resembles a double-quote mark) before the final letter of the day and year numbers.
136
153
</simpara>
137
154
</listitem>
138
155
</varlistentry>
139
-
<varlistentry xml:id="constant.cal-month-jewish">
156
+
<varlistentry xml:id="constant.cal-dow-dayno">
140
157
<term>
141
-
<constant>CAL_MONTH_JEWISH</constant>
142
-
(<type>integer</type>)
158
+
<constant>CAL_DOW_DAYNO</constant>
159
+
(<type>int</type>)
143
160
</term>
144
161
<listitem>
145
162
<simpara>
146
-
163
+
For <function>jddayofweek</function>: the day of the week as
164
+
<type>int</type>, where <literal>0</literal> means Sunday and
165
+
<literal>6</literal> means Saturday.
147
166
</simpara>
148
167
</listitem>
149
168
</varlistentry>
150
-
<varlistentry xml:id="constant.cal-month-french">
169
+
<varlistentry xml:id="constant.cal-dow-short">
151
170
<term>
152
-
<constant>CAL_MONTH_FRENCH</constant>
153
-
(<type>integer</type>)
171
+
<constant>CAL_DOW_SHORT</constant>
172
+
(<type>int</type>)
154
173
</term>
155
174
<listitem>
156
175
<simpara>
157
-
176
+
For <function>jddayofweek</function>: the abbreviated English name of the
177
+
day of the week.
158
178
</simpara>
159
179
</listitem>
160
180
</varlistentry>
161
-
</variablelist>
162
-
<para>
163
-
The following constants are available since PHP 4.3.0 :
164
-
</para>
165
-
<variablelist>
166
-
<varlistentry xml:id="constant.cal-easter-default">
181
+
<varlistentry xml:id="constant.cal-dow-long">
167
182
<term>
168
-
<constant>CAL_EASTER_DEFAULT</constant>
169
-
(<type>integer</type>)
183
+
<constant>CAL_DOW_LONG</constant>
184
+
(<type>int</type>)
170
185
</term>
171
186
<listitem>
172
187
<simpara>
173
-
188
+
For <function>jddayofweek</function>: the English name of the day of the
189
+
week.
174
190
</simpara>
175
191
</listitem>
176
192
</varlistentry>
177
-
<varlistentry xml:id="constant.cal-easter-roman">
193
+
<varlistentry xml:id="constant.cal-month-gregorian-short">
178
194
<term>
179
-
<constant>CAL_EASTER_ROMAN</constant>
180
-
(<type>integer</type>)
195
+
<constant>CAL_MONTH_GREGORIAN_SHORT</constant>
196
+
(<type>int</type>)
181
197
</term>
182
198
<listitem>
183
199
<simpara>
184
-
200
+
For <function>jdmonthname</function>: the abbreviated Gregorian month name.
185
201
</simpara>
186
202
</listitem>
187
203
</varlistentry>
188
-
<varlistentry xml:id="constant.cal-easter-always-gregorian">
204
+
<varlistentry xml:id="constant.cal-month-gregorian-long">
189
205
<term>
190
-
<constant>CAL_EASTER_ALWAYS_GREGORIAN</constant>
191
-
(<type>integer</type>)
206
+
<constant>CAL_MONTH_GREGORIAN_LONG</constant>
207
+
(<type>int</type>)
192
208
</term>
193
209
<listitem>
194
210
<simpara>
195
-
211
+
For <function>jdmonthname</function>: the Gregorian month name.
196
212
</simpara>
197
213
</listitem>
198
214
</varlistentry>
199
-
<varlistentry xml:id="constant.cal-easter-always-julian">
215
+
<varlistentry xml:id="constant.cal-month-julian-short">
200
216
<term>
201
-
<constant>CAL_EASTER_ALWAYS_JULIAN</constant>
202
-
(<type>integer</type>)
217
+
<constant>CAL_MONTH_JULIAN_SHORT</constant>
218
+
(<type>int</type>)
203
219
</term>
204
220
<listitem>
205
221
<simpara>
206
-
222
+
For <function>jdmonthname</function>: the abbreviated Julian month name.
207
223
</simpara>
208
224
</listitem>
209
225
</varlistentry>
210
-
</variablelist>
211
-
<para>
212
-
The following constants are available since PHP 5.0.0 :
213
-
</para>
214
-
<variablelist>
215
-
<varlistentry xml:id="constant.cal-jewish-add-alafim-geresh">
226
+
<varlistentry xml:id="constant.cal-month-julian-long">
216
227
<term>
217
-
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>
218
-
(<type>integer</type>)
228
+
<constant>CAL_MONTH_JULIAN_LONG</constant>
229
+
(<type>int</type>)
219
230
</term>
220
231
<listitem>
221
232
<simpara>
222
-

233
+
For <function>jdmonthname</function>: the Julian month name.
223
234
</simpara>
224
235
</listitem>
225
236
</varlistentry>
226
-
<varlistentry xml:id="constant.cal-jewish-add-alafim">
237
+
<varlistentry xml:id="constant.cal-month-jewish">
227
238
<term>
228
-
<constant>CAL_JEWISH_ADD_ALAFIM</constant>
229
-
(<type>integer</type>)
239
+
<constant>CAL_MONTH_JEWISH</constant>
240
+
(<type>int</type>)
230
241
</term>
231
242
<listitem>
232
243
<simpara>
233
-

244
+
For <function>jdmonthname</function>: the Jewish month name.
234
245
</simpara>
235
246
</listitem>
236
247
</varlistentry>
237
-
<varlistentry xml:id="constant.cal-jewish-add-gereshayim">
248
+
<varlistentry xml:id="constant.cal-month-french">
238
249
<term>
239
-
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>
240
-
(<type>integer</type>)
250
+
<constant>CAL_MONTH_FRENCH</constant>
251
+
(<type>int</type>)
241
252
</term>
242
253
<listitem>
243
254
<simpara>
244
-

255
+
For <function>jdmonthname</function>: the French Republican month name.
245
256
</simpara>
246
257
</listitem>
247
258
</varlistentry>
248
259
</variablelist>
249
260
</appendix>
250
-

251
261
<!-- Keep this comment at the end of the file
252
262
Local variables:
253
263
mode: sgml
254
264