|
 |
JDMonthName (PHP 3, PHP 4, PHP 5) JDMonthName -- Returns a month name Descriptionstring jdmonthname ( int julianday, int mode )
Returns a string containing a month name.
mode tells this function which calendar to
convert the Julian Day Count to, and what type of month names are
to be returned.
Таблица 1. Calendar modes Mode | Meaning | Values |
---|
0 | Gregorian - abbreviated | Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec | 1 | Gregorian | January, February, March, April, May, June, July, August, September, October, November, December | 2 | Julian - abbreviated | Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec | 3 | Julian | January, February, March, April, May, June, July, August, September, October, November, December | 4 | Jewish | Tishri, Heshvan, Kislev, Tevet, Shevat, AdarI, AdarII, Nisan, Iyyar, Sivan, Tammuz, Av, Elul | 5 | French Republican | Vendemiaire, Brumaire, Frimaire, Nivose, Pluviose, Ventose, Germinal, Floreal, Prairial, Messidor, Thermidor, Fructidor, Extra |
JDMonthName
Shai
24-Sep-2005 03:12
YIQV, this should correct your issue with Adar being displayed as AdarI:
<?php
if( $jewish_month == "AdarI" &&
$jewish_year%19 != 0 &&
$jewish_year%19 != 3 &&
$jewish_year%19 != 6 &&
$jewish_year%19 != 8 &&
$jewish_year%19 != 11 &&
$jewish_year%19 != 14 &&
$jewish_year%19 != 17
) {
$jewish_month = "Adar";
}
?>
YIQV
30-Jan-2005 10:47
I am finding an inconsistency in the Jewish month Adar. The function always returns AdarI regardless of whether the year is a jewish leapyear. The month is known as Adar (not AdarI) in non-leap years. Also when using function jdtojewish with bool hebrew set to true it always returns (ADR) and not (ADR A) when it's a leap year. AdarII in Hebrew and English seems to work properly.
php bob
14-Nov-2004 12:43
This is correct - remember that the Julian cal uses the correct latin - ie OCTober (octagon etc) is the 8th month. DECI (as in decimal etc etc) is the 10th month.
dmoren at mac dot com
13-Oct-2004 09:03
Slight error in the documentation above (though I believe the function works correctly). The Julian and Gregorian calendar options as noted above are reversed. Also, the documentation suggests that Julian and Gregorian have the same months, which is not the case. If you ask for the 10th month of the Julian calendar, you will get December instead of October (this produced some interesting results in a function I was working on...).
| |