Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/function.timezone-open.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.datetime.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.timezone-open.php',
1 => 'timezone_open',
),
'up' =>
array (
0 => 'ref.datetime.php',
1 => 'Date/Time Functions',
),
'prev' =>
array (
0 => 'function.timezone-offset-get.php',
1 => 'timezone_offset_get',
),
'next' =>
array (
0 => 'function.timezone-transitions-get.php',
1 => 'timezone_transitions_get',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.timezone-open" class="refentry">
<div class="refnamediv">
<h1 class="refname">timezone_open</h1>
<p class="verinfo">(PHP 5 >= 5.1.0)</p><p class="refpurpose"><span class="refname">timezone_open</span> — <span class="dc-title">Returns new DateTimeZone object</span></p>
</div>
<a name="function.timezone-open.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type"><a href="class.datetimezone.php" class="type DateTimeZone">DateTimeZone</a></span> <span class="methodname"><b>timezone_open</b></span>
( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$timezone</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type"><a href="class.datetimezone.php" class="type DateTimeZone">DateTimeZone</a></span> <span class="methodname"><a href="datetimezone.construct.php" class="function">DateTimeZone::__construct</a></span>
( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$timezone</tt></span>
)</div>
</div>
<a name="function.timezone-open.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">timezone</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
Time zone identifier as full name (e.g. Europe/Prague) or abbreviation
(e.g. CET).
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.timezone-open.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns DateTimeZone object on success or <b><tt class="constant">FALSE</tt></b> on failure.
</p>
</div>
</div><?php manual_footer(); ?>