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 = ????
setting date variable incremented by 25 seconds
Moderator: General Moderators
-
mccommunity
- Forum Commoner
- Posts: 62
- Joined: Mon Oct 07, 2002 8:55 am
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
And for this...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
Code: Select all
<?php
$newdate = date("D d F Y h:i:s T", time()+20);
?>