返回月份的名稱

JDMonthName

(PHP 4, PHP 5, PHP 7, PHP 8)

JDMonthName返回月份的名稱

說明

jdmonthname(int $julianday, int $mode): string

返回一個月份名稱的字串,mode參數指定使用哪種曆法和月份名稱的形式。

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

參數

jday

用來計算的julian天數

calendar

曆法的月份的名字

返回值

根據指定的julian天數和calendar曆法參數而得到月份的名稱。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *