Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

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.

ValueConstantDescriptionValues
0CAL_MONTH_GREGORIAN_SHORTGregorian - abbreviatedJan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec
1CAL_MONTH_GREGORIAN_LONGGregorianJanuary, February, March, April, May, June, July, August, September, October, November, December
2CAL_MONTH_JULIAN_SHORTJulian - abbreviatedJan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec
3CAL_MONTH_JULIAN_LONGJulianJanuary, February, March, April, May, June, July, August, September, October, November, December
4CAL_MONTH_JEWISHJewishTishri, Heshvan, Kislev, Tevet, Shevat, AdarI, AdarII, Nisan, Iyyar, Sivan, Tammuz, Av, Elul
5CAL_MONTH_FRENCHFrench RepublicanVendemiaire, 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
HomeMenu