Latest web development tutorials

PHP jdmonthname () function

PHP Calendar Reference Manual PHP Calendar Reference Manual

Examples

Back January 13, 1998 the day of the month Gregorian shorthand string:

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

Running instance »

Definition and Usage

jdmonthname () function returns the name of the month.

grammar

jdmonthname( jd,mode);

参数 描述
jd 必需。数字(儒略日计数)。
mode 可选。定义把儒略日计数转换为哪种历法,以及如何返回月份名称(全称还是简写)。模式值:
  • 0 - 格利高里历法 - 简写形式 (Jan, Feb, Mar, ...)
  • 1 - 格利高里历法 (January, February, March, ...)
  • 2 - 儒略历法 - 简写形式 (Jan, Feb, Mar, ...)
  • 3 - 儒略历法 (January, February, March, ...)
  • 4 - 犹太历法 (Tishri, Heshvan, Kislev, ...)
  • 5 - 法国共和历法 (Vendemiaire, Brumaire, Frimaire, ...)

technical details

return value: Returns the Julian calendar date and the name of the month.
PHP version: 4+


PHP Calendar Reference Manual PHP Calendar Reference Manual