#39385 [Opn->Csd]: International friendly mktime alternative

From: Date: Tue, 07 Nov 2006 14:38:37 +0000
Subject: #39385 [Opn->Csd]: International friendly mktime alternative
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104517@lists.php.net to get a copy of this message
ID: 39385 Updated by: bjori@php.net Reported By: thehub at lofty dot net dot au -Status: Open +Status: Closed Bug Type: *Languages/Translation Operating System: any PHP Version: 4.4.4 New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Have a look at the DateTime object in 5.2.0 (will not be fixed in PHP4). Previous Comments: ------------------------------------------------------------------------ [2006-11-04 21:00:55] thehub at lofty dot net dot au Description: ------------ I've had to make my own mkdate function to call mktime and rearrange the params because mktime uses the usa-only format that doesn't make mathematical sense. Please add these functions to the standard php date/time functions. Reproduce code: --------------- mkdate($day[, $month[, $year]]) mkitime($second[, $minute[, $hour[, $day[, $month[, $year[, $is_dst]]]]]])) mkidate($year[, $month[, $day[, $hour[, $minute[, $second[, $is_dst]]]]]]) Expected result: ---------------- Give the writer of the original mktime function a good whack upside the head for me, for thinking that repeating a mistake enough times will make it right. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39385&edit=1

« previous php.bugs (#104517) next »