#39373 [Opn->Bgs]: strftime does not output %D (%m/%d/%y)
| From: | derick@php.net | Date: | Sat, 04 Nov 2006 10:28:51 +0000 |
| Subject: | #39373 [Opn->Bgs]: strftime does not output %D (%m/%d/%y) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104377@lists.php.net to get a copy of this message | ||
ID: 39373
Updated by: derick@php.net
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