Re: docs for php date("I", $timestamp) for daylight savings
| From: | Derick Rethans | Date: | Mon, 06 Dec 2004 19:45:27 +0000 |
| Subject: | Re: docs for php date("I", $timestamp) for daylight savings | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365375@lists.php.net to get a copy of this message | ||
On Mon, 6 Dec 2004, Steve Chamberlin wrote:
> The docs to PHP's date() function are unclear regarding the "I" format
> string. They say date("I", $timestamp) returns whether or not
> $timestamp is in daylight savings time: 1 if daylight savings time, 0
> otherwise.
>
> Trouble is, the docs don't explain how date() decides if a given
> timestamp is in daylight savings time. DST starts and ends on
> different dates in different political regions of the world. Does it
> use the DST rules for the United States? Does it matter whether or not
> the server is itself located in a region that observes daylight
> savings time?
It knows in which timezone the server is, and it will work with that.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org