PHP JDMonthName() function
Example
Return the abbreviated string of the month of the Gregorian calendar for October 15, 1980:
<?php $jd=gregoriantojd(10,15,1980); echo jdmonthname($jd,0); ?>
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. Define which calendar to convert Julian day count to, and how to return the month name (full name or abbreviation). Pattern value:
|
Technical Details
Return value: | Return the specified Julian day and the month name of the calendar. |
---|---|
PHP Version: | 4+ |