JDMonthName
(PHP 4, PHP 5, PHP 7, PHP 8)
JDMonthName — 返回月份的名稱
說明
jdmonthname(int
$julianday
, int $mode
): string
返回一個月份名稱的字串,mode
參數指定使用哪種曆法和月份名稱的形式。
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 |
參數
-
jday
-
用來計算的julian天數
-
calendar
-
曆法的月份的名字
返回值
根據指定的julian天數和calendar
曆法參數而得到月份的名稱。