Hi,

You can just use : 

$output = strtotime("+1 day");
$output = strtotime("-7 day");

http://dk.php.net/manual/en/function.strtotime.php

-Morten Skou


-----Original Message-----
From: andy [mailto:[EMAIL PROTECTED]] 
Sent: 6. september 2002 13:50
To: [EMAIL PROTECTED]
Subject: [PHP] unix timestamp 

Hi everybody,

I am trying to create a unix timestamp which dates back a certain amount
of
days. Lets say I would like to have a unix timestamp from 7 days ago.

what I tryed is just to subtract values since this are counted s since
the
start of the unix epoche, but this does not work in cases like the
switch of
months. Has anybody an idea how to do that?

Thanx, Andy



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



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

Reply via email to