Doc #53798 [NEW]: specify range for month and day in mktime

From: Date: Thu, 20 Jan 2011 10:41:11 +0000
Subject: Doc #53798 [NEW]: specify range for month and day in mktime
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5842@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:specify range for month and day in mktime Description: ------------ --- From manual page: http://www.php.net/function.mktime --- Documentation says about the "month" parameter: "month The number of the month. " It should specify that this is 1-based, i.e. January is 1 and December is 12. This is not obvious, as some languages use 0-based indexes (i.e. 0 for january and 11 for december) To be rigorous, the same holds for days, thought I guess it is more obvious that the first day of the month is counted as 1 and not 0 so this may not be necessary, thought it wouldn't hurt. Anyway for the number of the month it is absolutely vital to specify it. -- Edit bug report at http://bugs.php.net/bug.php?id=53798&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53798&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53798&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53798&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53798&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53798&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53798&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53798&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53798&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53798&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53798&r=support Expected behavior: http://bugs.php.net/fix.php?id=53798&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53798&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53798&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53798&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53798&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53798&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53798&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53798&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53798&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53798&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53798&r=mysqlcfg

« previous php.doc.bugs (#5842) next »