Doc #63932 [Opn->Ver]: cal_from_jd numbering for Jewish months is not explained
| From: | cmb@php.net | Date: | Mon, 04 Sep 2017 11:30:48 +0000 |
| Subject: | Doc #63932 [Opn->Ver]: cal_from_jd numbering for Jewish months is not explained | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14948@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63932&edit=1
ID: 63932
Updated by: cmb@php.net
Reported by: r07271368 at hotmail dot com
Summary: cal_from_jd numbering for Jewish months is not
explained
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Calendar related
Operating System: testbed at tehplayground.com
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
> The numbering that cal_from_jd uses for Jewish months is not
> explained in the documentation.
Indeed. However, the jdmonthname and jewishtojd man pages have some
information about this.
> Also, the name "AdarI" is used for Adar in all years, not just
> years with 13 months.
This has been reported as bug #54254, and fixed as of PHP 5.5.0.
Previous Comments:
------------------------------------------------------------------------
[2013-01-07 17:56:58] r07271368 at hotmail dot com
Description:
------------
The numbering that cal_from_jd uses for Jewish months is not explained in the documentation.
Apparently, the first six months of the Jewish year (counting from Tishri) are numbered 1 to 6; the
last six months are numbered 8 to 13; and 7 appears as a month number only if the year has 13 months
total. If the year is 12 months in length, then the number 7 is skipped in the month numbering.
Also, the name "AdarI" is used for Adar in all years, not just years with 13 months.
Test script:
---------------
$n = 2456150;
for ($i=1; $i<=150; $i++) {
$a = cal_from_jd($n, CAL_GREGORIAN);
$b = cal_from_jd($n, CAL_JEWISH);
echo $a['date']." ";
echo $b['date']." ";
echo $b['monthname']."\n";
$n+=15;
}
Expected result:
----------------
The script shows Gregorian and corresponding Jewish dates at 15-day intervals. A Jewish month is
either 29 or 30 days. Therefore, the interval is too short to skip over any months.
Actual result:
--------------
Please observe the sequence of month names and month numbers returned by the script.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63932&edit=1