; >
> > Danny
> >
> > - Original Message -
> > From: "Ron Allen" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, April 19, 2002 2:56 PM
> > Subject: Re: [PHP] Determine the difference between two dates
&g
<[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 19, 2002 2:56 PM
> Subject: Re: [PHP] Determine the difference between two dates
>
>
> > If I wanted to represent it in the format of Days,Hours,Minutes,Seconds
> how
> > would that work
>
use the date() command (http://www.php.net/date) - using $timeDiff as the
datestamp.
HTH
Danny
- Original Message -
From: "Ron Allen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 2:56 PM
Subject: Re: [PHP] Determine the difference betw
If I wanted to represent it in the format of Days,Hours,Minutes,Seconds how
would that work
"Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
020e01c1e7a1$70098eb0$0200a8c0@dannys">news:020e01c1e7a1$70098eb0$0200a8c0@dannys...
> Firstly, I assume you mean "Y-m-j H:i:s" for the date format.
>
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Yes, but note that strtotime has a second parameter, which is "now" if
not indicated.
What strtotime returns is relative to this second parameter.
I would use:
$ahora = time();
$firstTime=strtotime($firstTime, $ahora);
$l
Firstly, I assume you mean "Y-m-j H:i:s" for the date format.
To get the difference between 2 time strings :
HTH
Danny.
- Original Message -
From: "Ron Allen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 1:08 PM
Subject: [PHP] Determine the difference bet
6 matches
Mail list logo