note 103509 added to function.jdmonthname
| From: | asphp at dsgml dot com | Date: | Sun, 17 Apr 2011 09:58:59 +0000 |
| Subject: | note 103509 added to function.jdmonthname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178919@lists.php.net to get a copy of this message | ||
Use this function if you prefer to use the standard calendar constants:
function jdmonthname2($julianday, $calendar, $abbrev = false) {
if($calendar == CAL_GREGORIAN && $abbrev) $mode = 0;
elseif($calendar == CAL_GREGORIAN && !$abbrev) $mode = 1;
elseif($calendar == CAL_JULIAN && $abbrev) $mode = 2;
elseif($calendar == CAL_JULIAN && !$abbrev) $mode = 3;
elseif($calendar == CAL_JEWISH) $mode = 4;
elseif($calendar == CAL_FRENCH) $mode = 5;
else $mode = 10; //use an invalid mode and let the underlying function handle it
return jdmonthname($julianday, $mode);
}
----
Server IP: 192.41.42.26
Probable Submitter: 71.61.179.154
----
Manual Page -- http://www.php.net/manual/en/function.jdmonthname.php
Edit -- https://master.php.net/note/edit/103509
Del: integrated -- https://master.php.net/note/delete/103509/integrated
Del: useless -- https://master.php.net/note/delete/103509/useless
Del: bad code -- https://master.php.net/note/delete/103509/bad+code
Del: spam -- https://master.php.net/note/delete/103509/spam
Del: non-english -- https://master.php.net/note/delete/103509/non-english
Del: in docs -- https://master.php.net/note/delete/103509/in+docs
Del: other reasons-- https://master.php.net/note/delete/103509
Reject -- https://master.php.net/note/reject/103509
Search -- https://master.php.net/manage/user-notes.php