Note that according to manual and faq the calendar year 'YYYY differs from the real year 'yyyy'. As long as Thursday is below the 4th the week differs, so does the year oft he week. See into your book calendar for an real world example
Thomas Weidner Zend Framework Certified Engineer & I18N Team Leader http://www.thomasweidner.com -----Ursprüngliche Nachricht----- Von: scs [mailto:[email protected]] Gesendet: Freitag, 15. Oktober 2010 14:10 An: David Muir Cc: [email protected] Betreff: Re: [fw-general] Re: Date Subtractions Differences Hello, $gd and $rd are variables received from db in format 2010-12-24 (year-month-day). $going = new Zend_Date($gd, 'YYYY-MM-dd'); $return = new Zend_Date($rd, 'YYYY-MM-dd'); As an extra note to my question: When I changed $diff = $return->getDate()->subDate($going->getDate())->toArray(); to $diff = $return->subDate($going)->toArray(); it started to give me the same result (the result which I was expecting). On Fri, Oct 15, 2010 at 5:01 AM, David Muir <[email protected]> wrote: > > How did you create the dates? > > David > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/Date-Subtractions > -Differences-tp2996040p2996412.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
