On Sat, May 18, 2013 at 12:17 PM, Andreas Möller <[email protected]> wrote: > not so sure about this, but I see the following related to > > * https://github.com/zendframework/zf2/pull/4495 > * https://github.com/zendframework/zf2/issues/4493 > > Should the DateTimeFormatter, when passed a string from which an instance of > DateTime could be created, return a DateTime? > > I would find it quite useful, to be honest, for the same reasons why I > believe the NumberFormat filter should return a float when a parseable string > was passed to it.
No, it should not return a DateTime, as that would break backwards compatibility. Introduce alternate formatters/filters if you would like that behavior. -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
