Re: DateTime improvement

From: Date: Sun, 16 Dec 2012 21:39:57 +0000
Subject: Re: DateTime improvement
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Sun, 16 Dec 2012, Stas Malyshev wrote:

> > Al the methods will *still* return the modified DateTime object - 
> > it's just that the one that you *call* f.e. ->modify() on won't 
> > change anymore.
> 
> Doesn't it mean you can just call clone() on it in modifier methods 
> before doing anything else?

Yeah, I think so. I tried that but I got some errors. It's something for 
me to sort out. So far, I've just created all the helper methods etc. 
clone() however is not a method, but a language construct... so it's not 
that trivial.

cheers,
Derick


Thread (34 messages)

« previous php.internals (#64312) next »