JDMonthName() function in PHP

王林
Release: 2023-09-11 20:08:01
forward
1271 people have browsed it

JDMonthName() function in PHP

The JDMonthName() method returns a month name.

Syntax

jdmonthname(julian_day, mode)
Copy after login

Parameters

  • 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.)

Return Values

The JDMonthName() function returns the name of the month for the specified Julian day and calendar.

Example

Here is an example:

Demo link

Copy after login

Output

Aug
Copy after login

The above is the detailed content of JDMonthName() function in PHP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!