Re: date/timezone classes
| From: | George Schlossnagle | Date: | Fri, 08 Jul 2005 01:04:58 +0000 |
| Subject: | Re: date/timezone classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17183@lists.php.net to get a copy of this message | ||
On Jul 7, 2005, at 7:56 PM, Andi Gutmans wrote:
It would look the following: $timeZone->getName(); vs. date_timezone_get($date); $date->getOffset(); vs. date_offset_get($date); Personally, unrelated to OO I think it's a nicer and cleaner way of exposing such an API. It would also make it easier for some of the other new extensions like SimpleXML, SOAP, PDO , etc. to take advantage of it when exposing data types. I think this should be seriously considered. I'll be happy to work with you on this if it makes sense to you and others.+1