RE: [PHP] unix timestamp

2002-09-06 Thread Adam Voigt
$date = date("U",strtotime("-7 day")); Have a nice day. Adam Voigt [EMAIL PROTECTED] On Fri, 2002-09-06 at 12:37, Mike richardson wrote: > The attached class is a date utility that I created a long time ago. > > It parses out SQL dates, does differences, and specific to your needs, > you can

RE: [PHP] unix timestamp

2002-09-06 Thread Mike richardson
The attached class is a date utility that I created a long time ago. It parses out SQL dates, does differences, and specific to your needs, you can use dateAdjust() to move a unix timestamp by a number of seconds, minutes, hours, days, months, quarters, years or centuries. You should be able t

RE: [PHP] unix timestamp

2002-09-06 Thread Morten Skou
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 time

RE: [PHP] unix timestamp

2002-09-06 Thread Jon Haworth
Hi Andy, > 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

Re: [PHP] Unix timestamp

2001-05-10 Thread Jack Dempsey
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]) Parse that list of values into the respective variables and pass them to mktime -jack TV Karthick Kumar wrote: > > Hi List.. > > How do I conver