note 101292 deleted from datetimezone.gettransitions by danbrown
| From: | danbrown@php.net | Date: | Wed, 08 Dec 2010 14:20:36 +0000 |
| Subject: | note 101292 deleted from datetimezone.gettransitions by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174707@lists.php.net to get a copy of this message | ||
Note Submitter: Patrick
----
<?php
$tz = new DateTimeZone("UTC");
$date = new DateTime("+100000000000 years", $tz);
$tzInfo = $tz->getTransitions($date->format("U"), $date->format("U"));
?>
... takes more than two minutes to complete on 2010-modern hardware - thus it's probably a good
idea to filter out very large timestamps before using getTransitions().