note 104427 added to function.cal-days-in-month
| From: | adam dot pippinatohmedia dot ca at osu1 dot php dot net | Date: | Tue, 14 Jun 2011 22:06:13 +0000 |
| Subject: | note 104427 added to function.cal-days-in-month | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180537@lists.php.net to get a copy of this message | ||
Forgot to compile the calendar plugin in... Wrote a workaround while I waited for it to compile. It
only supports the Gregorian calendar.
if (!function_exists('cal_days_in_month'))
{
function cal_days_in_month($calendar, $month, $year)
{
return date('t', mktime(0, 0, 0, $month, 1, $year));
}
}
if (!defined('CAL_GREGORIAN'))
define('CAL_GREGORIAN', 1);
----
Server IP: 72.55.140.6
Probable Submitter: 216.197.228.25
----
Manual Page -- http://www.php.net/manual/en/function.cal-days-in-month.php
Edit -- https://master.php.net/note/edit/104427
Del: integrated -- https://master.php.net/note/delete/104427/integrated
Del: useless -- https://master.php.net/note/delete/104427/useless
Del: bad code -- https://master.php.net/note/delete/104427/bad+code
Del: spam -- https://master.php.net/note/delete/104427/spam
Del: non-english -- https://master.php.net/note/delete/104427/non-english
Del: in docs -- https://master.php.net/note/delete/104427/in+docs
Del: other reasons-- https://master.php.net/note/delete/104427
Reject -- https://master.php.net/note/reject/104427
Search -- https://master.php.net/manage/user-notes.php