Re: Upgrading to internal DateTime
| From: | Derick Rethans | Date: | Fri, 05 Dec 2008 16:03:44 +0000 |
| Subject: | Re: Upgrading to internal DateTime | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42117@lists.php.net to get a copy of this message | ||
On Fri, 5 Dec 2008, Jochem Maas wrote:
> vrijdag, 05 december 2008
> Fri, December 2008
>
> having to use <?php (int)$d->format("U") ?> seems wrong, having
> something like <?php $d->getTimeStamp() ?> would seem better.
>
> Am I missing something? or is there actually a limitation in DateTime
> that should/will be addressed at some time in the future? personally
> I just looking to understand ... here's hoping you may be able to
> shed some light on the matter.
get/setTimestamp have been added in PHP 5.3.
regards,
Derick
--
HEAD before 5_3!: http://tinyurl.com/6d2esb
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org