RE: [PHP] unix timestamp
| From: | Morten Skou | Date: | Fri, 06 Sep 2002 11:46:40 +0000 |
| Subject: | RE: [PHP] unix timestamp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115471@lists.php.net to get a copy of this message | ||
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:news.letters@gmx.de]
Sent: 6. september 2002 13:50
To: php-general@lists.php.net
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