xref: /PHP-7.0/ext/calendar/tests/cal_from_jd.phpt (revision e94670d4)
1--TEST--
2cal_from_jd()
3--SKIPIF--
4<?php include 'skipif.inc'; ?>
5--FILE--
6<?php
7print_r(cal_from_jd(1748326, CAL_GREGORIAN));
8print_r(cal_from_jd(1748324, CAL_JULIAN));
9print_r(cal_from_jd( 374867, CAL_JEWISH));
10print_r(cal_from_jd(      0, CAL_FRENCH));
11?>
12--EXPECT--
13Array
14(
15    [date] => 8/26/74
16    [month] => 8
17    [day] => 26
18    [year] => 74
19    [dow] => 0
20    [abbrevdayname] => Sun
21    [dayname] => Sunday
22    [abbrevmonth] => Aug
23    [monthname] => August
24)
25Array
26(
27    [date] => 8/26/74
28    [month] => 8
29    [day] => 26
30    [year] => 74
31    [dow] => 5
32    [abbrevdayname] => Fri
33    [dayname] => Friday
34    [abbrevmonth] => Aug
35    [monthname] => August
36)
37Array
38(
39    [date] => 8/26/74
40    [month] => 8
41    [day] => 26
42    [year] => 74
43    [dow] => 4
44    [abbrevdayname] => Thu
45    [dayname] => Thursday
46    [abbrevmonth] => Nisan
47    [monthname] => Nisan
48)
49Array
50(
51    [date] => 0/0/0
52    [month] => 0
53    [day] => 0
54    [year] => 0
55    [dow] => 1
56    [abbrevdayname] => Mon
57    [dayname] => Monday
58    [abbrevmonth] =>
59    [monthname] =>
60)
61