jdmonthname

Returns a month name

Syntax

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

Parameters

julianday

The Julian Day to operate on.

mode

The calendar mode.

Number Name 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

julianday mode | CAL_MONTH_GREGORIAN_SHORT

<?

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

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

echo $return;

?>
Oct

julianday mode | CAL_MONTH_GREGORIAN_LONG

<?

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

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

echo $return;

?>
October

julianday mode | CAL_MONTH_JULIAN_SHORT

<?

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

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

echo $return;

?>
Oct

julianday mode | CAL_MONTH_JULIAN_LONG

<?

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

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

echo $return;

?>
October

julianday mode | CAL_MONTH_JEWISH

<?

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

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

echo $return;

?>
Heshvan

julianday mode | CAL_MONTH_FRENCH

<?

$month = 9;
$day = 22;
$year = 1806;

$julianday = gregoriantojd($month, $day, $year);
$mode = CAL_MONTH_FRENCH;

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

echo $return;

?>
Extra

PHP

Home Menu