jdmonthname

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.

Number 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

The month name for the given Julian Day and mode.

Examples

julian_day mode | CAL_MONTH_GREGORIAN_SHORT

<?

$julian_day = unixtojd();
$mode = CAL_MONTH_GREGORIAN_SHORT;

$return = jdmonthname($julian_day, $mode);

echo $return;

?>
Jan

julian_day mode | CAL_MONTH_GREGORIAN_LONG

<?

$julian_day = unixtojd();
$mode = CAL_MONTH_GREGORIAN_LONG;

$return = jdmonthname($julian_day, $mode);

echo $return;

?>
January

julian_day mode | CAL_MONTH_JULIAN_SHORT

<?

$julian_day = unixtojd();
$mode = CAL_MONTH_JULIAN_SHORT;

$return = jdmonthname($julian_day, $mode);

echo $return;

?>
Jan

julian_day mode | CAL_MONTH_JULIAN_LONG

<?

$julian_day = unixtojd();
$mode = CAL_MONTH_JULIAN_LONG;

$return = jdmonthname($julian_day, $mode);

echo $return;

?>
January

julian_day mode | CAL_MONTH_JEWISH

<?

$julian_day = unixtojd();
$mode = CAL_MONTH_JEWISH;

$return = jdmonthname($julian_day, $mode);

echo $return;

?>
Shevat

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

PHP

Home Menu