On Mon, 2 Feb 2004 17:27:19 -0500, "Philip D Heady" <pd*****@comcast.net>
wrote:
"Philip D Heady" <pd*****@comcast.net> wrote in message
news:0Q****************@news.uswest.net... "Andy Hassall" <an**@andyh.co.uk> wrote in message On Mon, 2 Feb 2004 21:46:43 +0000 (UTC), "Max Power"
>What I need to know is how to convert time()+900 into HH:MM.
http://www.php.net/date
$the_time_you_want = date("Y-m-d H:i:s",(time+900));
Sorry, my bad. This will add 15 mins to the time.
$i = date("i") + ('15');
$today = date("H:$i:s");
No it won't, it'll be wrong if it's currently 45 minutes past the hour or
later. The OP was correct to stick with adding 900 seconds to a Unix timestamp
and then formatting it afterwardws.
--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>