Page 1 of 1

setting date variable incremented by 25 seconds

Posted: Thu Sep 18, 2003 4:24 pm
by mccommunity
I would like to make a new date tag that is the actual current date and time but incremented by 25 seconds.


so if $date was equal to Sun, 12 May 1996 00:36:05 GMT I would want the $newdate tag to be equal to
Sun, 12 May 1996 00:36:25 GMT


$date = date ("l dS of F Y h:i:s A");
newdate = ????

Posted: Thu Sep 18, 2003 4:40 pm
by qads

Code: Select all

<?php
$newdate = date("l dS of F Y h:i:s A", time()+25);
?>

Re: setting date variable incremented by 25 seconds

Posted: Thu Sep 18, 2003 6:25 pm
by JAM
mccommunity wrote: so if $date was equal to Sun, 12 May 1996 00:36:05 GMT I would want the $newdate tag to be equal to
Sun, 12 May 1996 00:36:25 GMT
And for this...

Code: Select all

<?php
 $newdate = date("D d F Y h:i:s T", time()+20); 
?>

Posted: Thu Sep 18, 2003 6:29 pm
by qads
:lol: