RE: [PHP] date() function

From: Date: Wed, 15 Nov 2006 16:37:15 +0000
Subject: RE: [PHP] date() function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-244677@lists.php.net to get a copy of this message
On Tue, 14 Nov 2006 15:11:56 -0500, Brad Fuller wrote: > > > $prevminute = sprintf('%02s', date("i")-1); Or, $prevminute = str_pad(date("i")-1, 2, '0', STR_PAD_LEFT); It's a little more code - don't ask me about the speed :) Ivo

« previous php.general (#244677) next »