dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

timezone_version_get> <timezone_open
[edit] Last updated: Fri, 28 Jun 2013

view this page in

timezone_transitions_get

(PHP 5 >= 5.2.0)

timezone_transitions_getAlias of DateTimeZone::getTransitions()

Description

This function is an alias of: DateTimeZone::getTransitions()



add a note add a note User Contributed Notes timezone_transitions_get - [1 notes]
up
-1
gopalv at php dot net
6 years ago
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']
);
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites