Syntax
jdmonthname ( $julianday [, $mode] ); |
Definition and Usage
This function returns a string containing a month name. mode tells this function which calendar to convert the Julian Day Count to, and what type of month names are to be returned.
Paramters
Parameter | Description |
---|---|
julianday | Required. The Julian Day to operate on |
mode | Optional. Defines which calendar to convert the Julian day count to, and what type of month names are to be returned. Mode values:
|
Return Value
The month name for the given Julian Day and calendar.
Example
Try out following example:
<?php $jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y")); echo(jdmonthname($jd,1)); ?> |
This will produce following result:
January |
No comments:
Post a Comment