Re: [PHP] Adding to time having a timestamp

2007-08-06 Thread Richard Heyes
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)); Simply add 86400 (number of seconds in a day). -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Adding to time having a timestamp

2007-08-05 Thread Stut
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