PHP jdmonthname()Function

PHP Calendar 参考手册PHP Calendar Reference Manual

Examples

Returns the abbreviated month string of the Gregorian calendar for January 13, 1998:

<?php
$jd=gregoriantojd(1,13,1998);
echo jdmonthname($jd,0);
?>

Run Example »

Definition and Usage

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

Syntax

jdmonthname(jd,mode);

Parameters Description
jd Required. A number (Julian day count).
mode Optional. Defines which calendar the Julian day count is converted to, and how to return the month name (full or abbreviated). Mode values:
  • 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 month name for the specified Julian day andcalendarthe month name of the calendar.
PHP Version: 4+


PHP Calendar 参考手册PHP Calendar Reference Manual Other Extensions