The JDMonthName() method returns a month name.
jdmonthname(julian_day, mode)
julian_day- A Julian day number
mode- Specifies which calendar to convert Julian day numbers to, and what type of month name to return:
0 - Gregorian abbreviation (Jan, Feb, Mar, etc.)
1 - Gregorian calendar (January, February, March, etc.)
2 - Julian calendar abbreviation ( Jan, Feb, Mar, etc.)
3 - Julian calendar (January, February, March, etc.)
4 - Jewish calendar (Tishri , Heshvan, Kislev, etc.)
5 - French Republican Calendar (Vendimaire, Brumaire, Frimaire, etc.)
The JDMonthName() function returns the name of the month for the specified Julian day and calendar.
Here is an example:
Demo link
Aug
The above is the detailed content of JDMonthName() function in PHP. For more information, please follow other related articles on the PHP Chinese website!