ID: 39373 Updated by: [EMAIL PROTECTED] Reported By: djhobson at bigpond dot net dot au -Status: Open +Status: Bogus -Bug Type: Output Control +Bug Type: Date/time related Operating System: Win XP SP 2 - Latest Patches PHP Version: 5.2.0 New Comment:
Please read the 2nd paragraph of: http://no2.php.net/strftime Previous Comments: ------------------------------------------------------------------------ [2006-11-04 10:12:55] djhobson at bigpond dot net dot au Description: ------------ strftime() is failing to output the designated results as given to the specified online PHP documents. Reproduce code: --------------- Script Name:- gettime.php Script contents:- <?php $time = 1162623699; $date = strftime("%D", $time); $theclock = strftime("%T", $time); $currenttime = $date." ".$theclock; echo $currenttime."\r\n"; exit; ?> Output:- Y:\>php gettime.php Y:\> PS: I see there is already a post in regards to %T output, but %D is the same! Expected result: ---------------- Expected results from online & current downloadable documentation is that from the given code I should see something like:- %D - same as %m/%d/%y %T - current time, equal to %H:%M:%S Simply, NOT HAPPENING MAN! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39373&edit=1