Possible bug with strftime ?

From: Date: Wed, 03 Jan 2001 15:29:45 +0000
Subject: Possible bug with strftime ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32504@lists.php.net to get a copy of this message
Someone could tell me why this code returns: 01d01h01m01s, instead the expected 00d00h01m01s $row_values[average]=61; printf(" <TR> <TD> Average: </TD> <TD> %s </TD> </TR> ",strftime("%dd%Hh%Mm%Ss",$row_values[average])); As far as I know the specs say that, why they doesn't work properly?: * %d - day of the month as a decimal number (range 00 to 31) * %H - hour as a decimal number using a 24-hour clock (range 00 to 23) I'm using Server: Apache/1.3.14 (Unix) PHP/4.0.1 it's a bug or a feature? --- Sistemes - DRAC telemàtic --------------------- c/ Transversal 226 - 08225 Terrassa Tel: +34 93 736 48 30 mailto:david@drac.com ----------------------------------------------------

« previous php.general (#32504) next »