You should use mktime()

(PHP 3, PHP 4 )

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


Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED] - Hébergement de sites Internet

"Andy" <[EMAIL PROTECTED]> a écrit dans le message de news:
> Hi everybody,
> I am trying to create a unix timestamp which dates back a certain amount
> 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
> months. Has anybody an idea how to do that?
> Thanx, Andy

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to