Re: unix timestamp

From: Date: Fri, 06 Sep 2002 12:23:58 +0000
Subject: Re: unix timestamp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115443@lists.php.net to get a copy of this message
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 nicos@php.net www.WorldAKT.com - Hébergement de sites Internet "Andy" <news.letters@gmx.de> a écrit dans le message de news: 20020906113551.53211.qmail@pb1.pair.com... > 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 > >

« previous php.general (#115443) next »