You should use mktime()

mktime
(PHP 3, PHP 4 )

mktime -- Get UNIX timestamp for a date
Description
int mktime ( int hour, int minute, int second, int month, int day, int year
[, int is_dst])

www.php.net/mktime

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

"Andy" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> 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

Reply via email to