[TriLUG] quuick PHP date question

Aaron S. Joyner aaron at joyner.ws
Thu Aug 17 10:04:13 EDT 2006


Greg Brown wrote:

> Okay, I can get the second from EPOCH fairly easily:
>
> $rightNow= mktime();
>
> now I want to add 604800 seconds to that date and revert it back to a
> printed date.  How do I do that in PHP?  I'm surfing php.net and havne't
> found the easy solution yet.
>
> Greg

See the other PHP thread for why you'd be a lot better off asking for +1
week.  :)  I'll let someone else fill in the PHP function details, I've
got to bolt out the door.

Aaron S. Joyner



More information about the TriLUG mailing list