xref: /PHP-8.4/ext/calendar/tests/jdmonthname.phpt (revision 56f90492)
1--TEST--
2jdmonthname()
3--EXTENSIONS--
4calendar
5--FILE--
6<?php
7foreach (array(2440588, 2452162, 2453926) as $jd) {
8  echo "### JD $jd ###\n";
9  for ($mode = 0; $mode <= 6; $mode++) {
10    echo "--- mode $mode ---\n";
11    for ($offset = 0; $offset <= 12; $offset++) {
12      echo jdmonthname($jd + $offset * 30, $mode). "\n";
13    }
14  }
15}
16?>
17--EXPECT--
18### JD 2440588 ###
19--- mode 0 ---
20Jan
21Jan
22Mar
23Apr
24May
25May
26Jun
27Jul
28Aug
29Sep
30Oct
31Nov
32Dec
33--- mode 1 ---
34January
35January
36March
37April
38May
39May
40June
41July
42August
43September
44October
45November
46December
47--- mode 2 ---
48Dec
49Jan
50Feb
51Mar
52Apr
53May
54Jun
55Jul
56Aug
57Sep
58Oct
59Nov
60Dec
61--- mode 3 ---
62December
63January
64February
65March
66April
67May
68June
69July
70August
71September
72October
73November
74December
75--- mode 4 ---
76Tevet
77Shevat
78Adar I
79Adar II
80Nisan
81Iyyar
82Sivan
83Tammuz
84Av
85Elul
86Tishri
87Heshvan
88Kislev
89--- mode 5 ---
90
91
92
93
94
95
96
97
98
99
100
101
102
103--- mode 6 ---
104Jan
105Jan
106Mar
107Apr
108May
109May
110Jun
111Jul
112Aug
113Sep
114Oct
115Nov
116Dec
117### JD 2452162 ###
118--- mode 0 ---
119Sep
120Oct
121Nov
122Dec
123Jan
124Feb
125Mar
126Apr
127May
128Jun
129Jul
130Aug
131Sep
132--- mode 1 ---
133September
134October
135November
136December
137January
138February
139March
140April
141May
142June
143July
144August
145September
146--- mode 2 ---
147Aug
148Sep
149Oct
150Nov
151Dec
152Jan
153Feb
154Mar
155Apr
156May
157Jun
158Jul
159Aug
160--- mode 3 ---
161August
162September
163October
164November
165December
166January
167February
168March
169April
170May
171June
172July
173August
174--- mode 4 ---
175Elul
176Tishri
177Heshvan
178Kislev
179Tevet
180Shevat
181Adar
182Nisan
183Iyyar
184Sivan
185Tammuz
186Av
187Elul
188--- mode 5 ---
189
190
191
192
193
194
195
196
197
198
199
200
201
202--- mode 6 ---
203Sep
204Oct
205Nov
206Dec
207Jan
208Feb
209Mar
210Apr
211May
212Jun
213Jul
214Aug
215Sep
216### JD 2453926 ###
217--- mode 0 ---
218Jul
219Aug
220Sep
221Oct
222Nov
223Dec
224Jan
225Feb
226Mar
227Apr
228May
229Jun
230Jul
231--- mode 1 ---
232July
233August
234September
235October
236November
237December
238January
239February
240March
241April
242May
243June
244July
245--- mode 2 ---
246Jun
247Jul
248Aug
249Sep
250Oct
251Nov
252Dec
253Jan
254Feb
255Mar
256Apr
257May
258Jun
259--- mode 3 ---
260June
261July
262August
263September
264October
265November
266December
267January
268February
269March
270April
271May
272June
273--- mode 4 ---
274Tammuz
275Av
276Elul
277Tishri
278Heshvan
279Kislev
280Tevet
281Shevat
282Adar
283Nisan
284Iyyar
285Sivan
286Tammuz
287--- mode 5 ---
288
289
290
291
292
293
294
295
296
297
298
299
300
301--- mode 6 ---
302Jul
303Aug
304Sep
305Oct
306Nov
307Dec
308Jan
309Feb
310Mar
311Apr
312May
313Jun
314Jul
315