I need the algorithm to do time math. I need to run a query against entries time stamped 15 minutes ago or earlier. I am stuck getting the time stamp to work.
I tried this:
and I am getting:
23:17:00
00:15:00
23
I am expecting
23:17:00
00:15:00
23:02:00
Thank you all in advance for your assistance!
Jose
I tried this:
Code:
$a = date('H:i:s');
$b = '00:15:00';
$c = $a - $b;
echo $a . '<br />';
echo $b . '<br />';
echo $c . '<br />';
and I am getting:
23:17:00
00:15:00
23
I am expecting
23:17:00
00:15:00
23:02:00
Thank you all in advance for your assistance!
Jose