note 19274 added to function.getdate

From: Date: Thu, 21 Feb 2002 16:55:14 +0000
Subject: note 19274 added to function.getdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-26896@lists.php.net to get a copy of this message
function mydate() { $now = getdate(); $h = $now['hours']; $min = $now['minutes']; $s = $now['seconds']; $y = $now['year']; $mon = $now['month']; $day = $now['mday']; $day = sprintf ("%02s",$day); $d = sprintf ("%02s",$h); $min = sprintf ("%02s",$m); $s = sprintf ("%02s",$s); $mydate['date'] = "$y $mon $day"; $mydate['time'] = "$h:$min:$s"; return $mydate; } -- http://www.php.net/manual/en/function.getdate.php http://master.php.net/manage/user-notes.php?action=edit+19274 http://master.php.net/manage/user-notes.php?action=delete+19274 http://master.php.net/manage/user-notes.php?action=reject+19274

« previous php.notes (#26896) next »