Changing variables into date....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Coco wrote: i cant use time()+3600 because i am looking for the next hour dead on, not 1 hour in the future
I don't see the difference... Internally mktime is going to build a unixtime stamp by multiplying the different components by the scale factor in seconds.

All that I see you doing is getting the day/month/year for one hour in the future. Both methods give the exact same results, except the time()=offset method has many fewer function calls...

Can you explain why there is a difference?
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

Post by Coco »

hmmm
*thinks*
no i cant :oops:
Post Reply