PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

JDToFrench> <JDDayOfWeek
Last updated: Sat, 24 Mar 2007

view this page in

JDMonthName

(PHP 4, PHP 5)

JDMonthName — Vrátit název měsíce

Popis

string jdmonthname ( int $julianday, int $mode )

Vrací řetězec obsahující název měsíce. mode určuje, na který kalendář se má Julian Day Count konvertovat a jaký typ jména se má vrátit.

Tabulka 17. Kalendářové módy

MódVýznam
0Gregoriánský - zkrácený
1Gregoriánský
2Juliánský - zkrácený
3Juliánský
4 idovský
5Francouzský republikánský



JDToFrench> <JDDayOfWeek
Last updated: Sat, 24 Mar 2007
 
add a note add a note User Contributed Notes
JDMonthName
YIQV
16-Aug-2007 12:52
Beshkin: For Hebrew, there already is. See  jdtojewish().
beshkin at apollo dot lv
05-Jul-2007 10:14
Maybe it is worth to add a translation option to calendar tools. In this case, there won't be need to translate manually to a variety of languages (E.g. Russian, Yiddish, etc.).

Or, maybe there is already such option, so could you tell me how to use it?

with respect,
Moishe
Shai
24-Sep-2005 03:12
YIQV, this should correct your issue with Adar being displayed as AdarI:

<?php

// assuming that $jewish_month is the Jewish month,
// and $jewish_year is the Jewish year,
// you can use this script to replace 'Adar I' with 'Adar' when it is not a leap year.
// this is because a Jewish leap year occurs every 3rd, 6th, 8th, 11th, 14th, 17th, and 19th year.

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...).

JDToFrench> <JDDayOfWeek
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites