PHP JDMonthName() Function

Example

Returns the abbreviated string of the month of the Gregorian calendar for October 15, 1980:

<?php
$jd=gregoriantojd(10,15,1980);
echo jdmonthname($jd,0);
?>

Run Example

Definition and Usage

The jdmonthname() function returns the name of the month.

Syntax

jdmonthname(jd,mode);
Parameter Description
jd Required. Number (Julian day count).
mode

Optional. Defines which calendar to convert Julian day count to, and how to return the month name (full name or abbreviation). Pattern value:

  • 0 - Gregorian Calendar - Abbreviated Form (Jan, Feb, Mar, ...)
  • 1 - Gregorian Calendar (January, February, March, ...)
  • 2 - Julian Calendar - Abbreviated Form (Jan, Feb, Mar, ...)
  • 3 - Julian Calendar (January, February, March, ...)
  • 4 - Jewish Calendar (Tishri, Heshvan, Kislev, ...)
  • 5 - French Republican Calendar (Vendemiaire, Brumaire, Frimaire, ...)

Technical Details

Return value: Returns the specified Julian day and the month name of the calendar.
PHP Version: 4+