Please write always to the mailinglist.
How dates are handles depends on the used locale.
See the manual for more informations on locales.
Example:
english is something like "Month/Day/Year" but german is "Day/Month/Year".
As you can see depending on the used locale also the date you will get in
return differs.
And as said before dates are always corrected.
So, when you select a month of "0" it's equal to "the last month one year
ago" or "year-1, Month 12"
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Marcus Stöhr" <[email protected]>
To: "Thomas Weidner" <[email protected]>
Sent: Monday, January 18, 2010 2:06 PM
Subject: Re: [fw-general] Zend_Date & working with dates like '0000-00-00'
Thank you, Thomas.
And there was another situation coming to mind: How does Zend_Date handle
partial dates, e.g. 2010-01-00 or 2010-00-00?
- Marcus
Am 18.01.2010 um 12:47 schrieb Thomas Weidner:
You can enter such dates within Zend_Date and there will be no failure.
But Zend_Date will automatically correct this date and change it to
Year 0, Month Jannuary - 1, Day First - 1
Which should lead so something like -01.December.31 00:00:00.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message ----- From: "Marcus Stöhr"
<[email protected]>
To: <[email protected]>
Sent: Monday, January 18, 2010 11:36 AM
Subject: [fw-general] Zend_Date & working with dates like '0000-00-00'
Hi,
I'm using Zend_Date in combination with data from an MySQL-table. I often
get the following date values from MySQL (due to schema changes made after
the creation of the tables): 0000-00-00 and 0000-00-00 00:00
Can I work with them in Zend_Date like any other date or should I extend
Zend_Date with my own class to handle these special cases?
- Marcus=