Page 1 of 1

php date problem

Posted: Sat Mar 20, 2004 8:27 am
by deepak
Hi everyone, im working on my university project and have been facing the following problem:

i use the following line to get the current time:
$todaytime=date("H:i:s");

What i want to do is add 15minutes to this time?????

The main outcome is for a SQL statment so show all the bookings within the next 15 minutes

Thanks in advance for all your help

regards
Deepak

Posted: Sat Mar 20, 2004 8:35 am
by patrikG
[php_man]mktime[/php_man]

Posted: Sat Mar 20, 2004 8:38 am
by deepak
I have tried the mktime function but i dont know how to set it to current time + 15minutes?

Posted: Sat Mar 20, 2004 8:44 am
by patrikG