Re: [PHP-WIN] Date Increment Problem

2002-10-31 Thread Stephen Edmonds
phen Edmonds" <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 8:07 AM Subject: Re: [PHP-WIN] Date Increment Problem > Correct me if I am wrong, but I think that the seconds in 3 days are 60*24*3 > (as opposed to 60*60*24*3) > > - Original Message - > From: &qu

Re: [PHP-WIN] Date Increment Problem

2002-10-30 Thread Stephen Edmonds
Firstly, you need to understand time. Time in computers is stored as the number of seconds since January 1st, 1970. The time now is 1035999078 (Or to humans, 17:31:30 on the 30th Oct). When you call the current time with time() it returns that long number above. You can then add on 1 days worth of

Re: [PHP-WIN] Date Increment Problem

2002-10-30 Thread Cam Dunstan
raheel The method Constantin suggests is a good solution for your problem, but also have a thorough read of the manual under date functions, there is a lot of additional useful info there with the use of several of the functions in unison - for example... $tomorrow = mktime (0,0,0,date("m") ,dat