RE: [PHP] Date comparison

From: Date: Wed, 04 Feb 2004 10:38:12 +0000
Subject: RE: [PHP] Date comparison
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176776@lists.php.net to get a copy of this message
BEOI 7308 wrote: > Hi > > I want to substract $first_date to $second_date and print the result > this way : > > xx days, xx hours, xx minutes > > i tried (strtotime($second_date)-strtotime($first_date)) but what i > get is a timestamp and i dont know what to do with it > > Is there already a function to print the result in a human readable > way ? > > Thx http://www.php.net/date -- Burhan Khalid phplist[at]meidomus[dot]com

« previous php.general (#176776) next »