Re: Adding to time having a timestamp
| From: | Stut | Date: | Sun, 05 Aug 2007 19:03:32 +0000 |
| Subject: | Re: Adding to time having a timestamp | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260213@lists.php.net to get a copy of this message | ||
OOzy Pal wrote:
How can I add a day to a date if I have a timestamp. Here is my line: list($d,$m,$y,$dayname,$monthname,$am)=explode(' ',date('d m Y D M a', $timestamp)); Thank you in advance$timestamp = $timestamp + 86400; A timestamp is a number of seconds and there are 86400 seconds in a day. -Stut -- http://stut.net/