Quantcast

Calc difference of 2 dates

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Calc difference of 2 dates

Stefan Sturm-2
Hello,

I need to calc the difference of two dates? Is this possible using Zend_Date?
I can't find anything about this...

Thanks,
Stefan Sturm
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Calc difference of 2 dates

Thomas VEQUAUD
http://framework.zend.com/manual/en/zend.date.basic.html#zend.date.simple.functions.add

$date = new Zend_Date();
$date->sub();



On Wed, Feb 18, 2009 at 4:15 PM, Stefan Sturm
<[hidden email]> wrote:
>
> Hello,
>
> I need to calc the difference of two dates? Is this possible using Zend_Date?
> I can't find anything about this...
>
> Thanks,
> Stefan Sturm



--
Thomas VEQUAUD          http://thomas.vequaud.free.fr/
Expert EPITECH en Ingénierie Informatique
Tél : +33(0)6.50.39.28.10  Fax: +33(0)9.58.46.10.07
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Calc difference of 2 dates

A.J. Brown-3
Additionally, there's ->isEarlier()  and ->isLater, which will tell you if the date object passed in is earlier than the calling date object or later respectively.

On Wed, Feb 18, 2009 at 9:25 AM, Thomas VEQUAUD <[hidden email]> wrote:
http://framework.zend.com/manual/en/zend.date.basic.html#zend.date.simple.functions.add

$date = new Zend_Date();
$date->sub();



On Wed, Feb 18, 2009 at 4:15 PM, Stefan Sturm
<[hidden email]> wrote:
>
> Hello,
>
> I need to calc the difference of two dates? Is this possible using Zend_Date?
> I can't find anything about this...
>
> Thanks,
> Stefan Sturm



--
Thomas VEQUAUD          http://thomas.vequaud.free.fr/
Expert EPITECH en Ingénierie Informatique
Tél : +33(0)6.50.39.28.10  Fax: +33(0)9.58.46.10.07



--
A.J. Brown
web | http://ajbrown.org
phone | (937) 660-3969
Loading...