Re: Get timestamp?

From: Date: Wed, 25 Jan 2006 20:19:49 +0000
Subject: Re: Get timestamp?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229267@lists.php.net to get a copy of this message
Max Schwanekamp wrote:
Jay Paulson wrote: How would I go about getting the timestamp of a day of the week from 7 weeks ago? $lastsunday = strtotime("last Sunday"); $sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days
Oops, that would be the sunday 7 weeks prior to _last_ Sunday, which would really be Sunday 8 weeks ago, so maybe change the 49 to 42... -- Max Schwanekamp http://www.neptunewebworks.com/

« previous php.general (#229267) next »