On Fri, 1 Oct 2010, Stas Malyshev wrote:

> Any reason why DateTime doesn't have a constant for RFC2616 (HTTP) date
> format? RFC1123 and 'r' are _almost_ there but 2616 explicitly states TZ must
> be "GMT" and 1123 format produces +0000 instead.

The reason is that in order to format a DateTime object as GMT, it needs 
to be converted to GMT... and you can't simply do that with just a 
constant consisting of a string of format characters.

cheers,
Derick
-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

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

Reply via email to