|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-01-13 10:25 UTC] tacker@php.net
Description: ------------ This code below will generate a strict error. Also the documentation a) states that mktime() can be called w/o arguments int mktime ([ int $Stunde [, int $Minute [, int $Sekunde [, int $Monat [, int $Tag [, int $Jahr [, int $is_dst ]]]]]]] ) b) does not recommend using time() instead of mktime() Reproduce code: --------------- <?php mktime(); ?> Actual result: -------------- Strict standards: mktime(): You should be using the time() function instead PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 27 17:00:01 2025 UTC |
I have seen a issue in mktime() for the date of 31 july like if we write echo date("m",mktime(0,0,0,07-1,31, 2009)); Above code will give output : 07 while logically it should be 6.