Hi Will,

Am 03.09.2012 um 14:01 schrieb Will Fitch <wfi...@meetme.com>:

> On Mon, Sep 3, 2012 at 7:57 AM, Pierre Joye <pierre....@gmail.com> wrote:
[...]
> I actually feel a static function which tracks globally would best serve
> this case:
> 
> date_default_format_set('c')
> 
> This would prevent the need for setting it on a per instance basis -
> similar to the way timezones can be set:
> 
> date_default_timezone_set('America/Chicago')


Please let’s not add another global setting. DateTime objects are basically 
value objects. If you need to create specific flavors of them, use a Factory.
Otherwise we will end up with horrible incompatibilities between libraries 
depending on different formats.

cu,
Lars
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to