Doc #63932 [NEW]: cal_from_jd numbering for Jewish months is not explained
| From: | r07271368 at hotmail dot com | Date: | Mon, 07 Jan 2013 17:56:58 +0000 |
| Subject: | Doc #63932 [NEW]: cal_from_jd numbering for Jewish months is not explained | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9363@lists.php.net to get a copy of this message | ||
From: r07271368 at hotmail dot com
Operating system: testbed at tehplayground.com
PHP version: Irrelevant
Package: Calendar related
Bug Type: Documentation Problem
Bug description:cal_from_jd numbering for Jewish months is not explained
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 bug report at https://bugs.php.net/bug.php?id=63932&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63932&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63932&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63932&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63932&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63932&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63932&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63932&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63932&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63932&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63932&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63932&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63932&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63932&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63932&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63932&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63932&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63932&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63932&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63932&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63932&r=mysqlcfg