[TriLUG] quuick PHP date question

Brian Henning brian at strutmasters.com
Thu Aug 17 10:06:05 EDT 2006


echo strftime("<format>", $rightNow + 604800);

where <format> is a set of tags described in the php.net docs for the 
strftime function.

HTH,
~Brian

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

-- 
----------------
Brian A. Henning
strutmasters.com
336.597.2397x238
----------------



More information about the TriLUG mailing list