PHP jdmonthname() Function
Definition
The jdmonthname() function returns a month name.
Syntax
PHP jdmonthname() Function has the following syntax.
jdmonthname(jd,mode);
Parameter
Parameter | Is Required | Description |
---|---|---|
jd | Required. | A Julian Day number |
mode | Optional. | Which calendar to convert the Julian Day Count to, and how the month name is to be returned. |
Mode values:
Value | Description |
---|---|
0 - Gregorian | abbreviated form such as Jan, Feb, Mar, etc. |
1 - Gregorian | full name form such as January, February, March, etc. |
2 - Julian | abbreviated form (Jan, Feb, Mar, etc.) |
3 - Julian | full name form (January, February, March, etc.) |
4 - Jewish | Tishri, Heshvan, Kislev, etc. |
5 - French | Republican Vendemiaire, Brumaire, Frimaire, etc. |
Return
PHP jdmonthname() Function returns the month name for the specified Julian Day and calendar.
Example
Return the abbreviated Gregorian monthname of 13th January, 2013:
<?php
$jd=gregoriantojd(1,13,2013);
echo jdmonthname($jd,0);
?>
The code above generates the following result.