PHP jdmonthname () function
Examples
Back January 13, 1998 the day of the month Gregorian shorthand string:
<?php
$jd=gregoriantojd(1,13,1998);
echo jdmonthname($jd,0);
?>
$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 | 可选。定义把儒略日计数转换为哪种历法,以及如何返回月份名称(全称还是简写)。模式值:
|
technical details
return value: | Returns the Julian calendar date and the name of the month. |
---|---|
PHP version: | 4+ |
PHP Calendar Reference Manual