downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

timezone_version_get> <timezone_open
Last updated: Fri, 13 Nov 2009

view this page in

timezone_transitions_get

(PHP 5 >= 5.2.0)

timezone_transitions_get DateTimeZone::getTransitions işlevinin takma adıdır

Açıklama

Bu işlev, DateTimeZone::getTransitions işlevinin takma adıdır.



add a note add a note User Contributed Notes
timezone_transitions_get
gopalv at php dot net
19-Jun-2007 08:10
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']
);
?>

timezone_version_get> <timezone_open
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites