How would I go about getting the timestamp of a day of the week from 7 weeks
ago?

In my case I'm getting the timestamp of last Sunday (no matter what day of
the week it is currently) and I want to get the timestamp of the Sunday that
happened 7 weeks ago.

$lastSunday = strtotime("last Sunday");
$Sunday7Weeks = $lastSunday - ???;

$Sunday7Weeks = $lastSunday - 86400 * 7 * 7; // 86400 seconds in a day

-philip

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to