note 75866 added to function.timezone-transitions-get
| From: | gopalv@php.net | Date: | Tue, 19 Jun 2007 20:10:43 +0000 |
| Subject: | note 75866 added to function.timezone-transitions-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127796@lists.php.net to get a copy of this message | ||
From Derick's talk (http://talks.php.net/show/time-ffm2006/28)
<?php
$tz = new DateTimeZone("PST");
foreach (timezone_transitions_get($tz) as $tr)
if ($tr['ts'] > time())
break;
$d = new DateTime( "@{$tr['ts']}" );
printf("The timezone %s switches to %s on %s.<br/>The new GMT offset will be: %d
(%s)\n",
$tz->getName(), $tr['isdst'] ? "DST" : "standard time",
$d->format('d M Y @ H:i'), $tr['offset'], $tr['abbr']
);
?>
----
Server IP: 203.220.0.234
Probable Submitter: 122.167.159.107
----
Manual Page -- http://www.php.net/manual/en/function.timezone-transitions-get.php
Edit -- https://master.php.net/note/edit/75866
Del: integrated -- https://master.php.net/note/delete/75866/integrated
Del: useless -- https://master.php.net/note/delete/75866/useless
Del: bad code -- https://master.php.net/note/delete/75866/bad+code
Del: spam -- https://master.php.net/note/delete/75866/spam
Del: non-english -- https://master.php.net/note/delete/75866/non-english
Del: in docs -- https://master.php.net/note/delete/75866/in+docs
Del: other reasons-- https://master.php.net/note/delete/75866
Reject -- https://master.php.net/note/reject/75866
Search -- https://master.php.net/manage/user-notes.php