Re: date/timezone classes
| From: | Marcus Boerger | Date: | Mon, 11 Jul 2005 18:12:55 +0000 |
| Subject: | Re: date/timezone classes | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17227@lists.php.net to get a copy of this message | ||
Hello Andrei,
++++++++1
Monday, July 11, 2005, 7:16:45 PM, you wrote:
> Can we please wrap up the whole OO/non-OO discussion and just fix the
> damn ext/date so that it works as advertised? The rest can be done
> later. Let's not hold up RC1 unless really necessary.
> -Andrei
> On Jul 8, 2005, at 1:06 PM, Marcus Boerger wrote:
>> Hello Derick,
>>
>> Friday, July 8, 2005, 2:31:14 PM, you wrote:
>>
>>> On Fri, 8 Jul 2005, Edin Kadribasic wrote:
>>
>>>> I would love to be able to do something like this:
>>>>
>>>> $d = new Date(time());
>>>> $d->month++;
>>>> $d->print("Y-m-d"); // date() equiv.
>>
>>> Adding methods is no problem, that's what you get for free anyway, I
>>> just think that $d->month is too much magic, and not reproducable in
>>> non
>>> OO.
>>
>> I wouldn't care for non oo here. And instead pretty much appreciate
>> such
>> stuff since it'd heavliy simplify working on calendar tools and still
>> have nice readable code.