jdmonthname
Description
The jdmonthname of Calendar for PHP returns a month name.
Syntax
jdmonthname( int $julian_day, int $mode ): string
Parameters
julian_day
The Julian Day to operate on.
mode
The calendar mode.
Value | Constant | Description | Values |
---|---|---|---|
0 | CAL_MONTH_GREGORIAN_SHORT | Gregorian - abbreviated | Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec |
1 | CAL_MONTH_GREGORIAN_LONG | Gregorian | January, February, March, April, May, June, July, August, September, October, November, December |
2 | CAL_MONTH_JULIAN_SHORT | Julian - abbreviated | Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec |
3 | CAL_MONTH_JULIAN_LONG | Julian | January, February, March, April, May, June, July, August, September, October, November, December |
4 | CAL_MONTH_JEWISH | Jewish | Tishri, Heshvan, Kislev, Tevet, Shevat, AdarI, AdarII, Nisan, Iyyar, Sivan, Tammuz, Av, Elul |
5 | CAL_MONTH_FRENCH | French Republican | Vendemiaire, Brumaire, Frimaire, Nivose, Pluviose, Ventose, Germinal, Floreal, Prairial, Messidor, Thermidor, Fructidor, Extra |
Return
Returns the month name for the given Julian Day and mode.
Examples
1 · julian_day mode · CAL_MONTH_GREGORIAN_SHORT
<? $julian_day = unixtojd(); $mode = CAL_MONTH_GREGORIAN_SHORT; $return = jdmonthname($julian_day, $mode); echo $return;
Nov
2 · julian_day mode · CAL_MONTH_GREGORIAN_LONG
<? $julian_day = unixtojd(); $mode = CAL_MONTH_GREGORIAN_LONG; $return = jdmonthname($julian_day, $mode); echo $return;
November
3 · julian_day mode · CAL_MONTH_JULIAN_SHORT
<? $julian_day = unixtojd(); $mode = CAL_MONTH_JULIAN_SHORT; $return = jdmonthname($julian_day, $mode); echo $return;
Oct
4 · julian_day mode · CAL_MONTH_JULIAN_LONG
<? $julian_day = unixtojd(); $mode = CAL_MONTH_JULIAN_LONG; $return = jdmonthname($julian_day, $mode); echo $return;
October
5 · julian_day mode · CAL_MONTH_JEWISH
<? $julian_day = unixtojd(); $mode = CAL_MONTH_JEWISH; $return = jdmonthname($julian_day, $mode); echo $return;
Heshvan
6 · julian_day mode · CAL_MONTH_FRENCH
<? $month = 9; $day = 22; $year = 1806; $julian_day = gregoriantojd($month, $day, $year); $mode = CAL_MONTH_FRENCH; $return = jdmonthname($julian_day, $mode); echo $return;
Extra