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-version-get.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-version-get.php',
1 => 'timezone_version_get',
),
'up' =>
array (
0 => 'ref.datetime.php',
1 => 'Date/Time Functions',
),
'prev' =>
array (
0 => 'function.timezone-transitions-get.php',
1 => 'timezone_transitions_get',
),
'next' =>
array (
0 => 'refs.utilspec.cmdline.php',
1 => 'Command Line Specific Extensions',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.timezone-version-get" class="refentry">
<div class="refnamediv">
<h1 class="refname">timezone_version_get</h1>
<p class="verinfo">(PHP 5 >= 5.3.0)</p><p class="refpurpose"><span class="refname">timezone_version_get</span> — <span class="dc-title">
Gets the version of the timezonedb
</span></p>
</div>
<a name="function.timezone-version-get.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">string</span> <span class="methodname"><b>timezone_version_get</b></span>
( <span class="methodparam">void</span>
)</div>
<p class="para rdfs-comment">
Returns the current version of the timezonedb.
</p>
</div>
<a name="function.timezone-version-get.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns a <a href="language.types.string.php" class="type string">string</a>.
</p>
</div>
<a name="function.timezone-version-get.examples"></a><div class="refsect1 examples">
<h3 class="title">Examples</h3>
<p class="para">
</p><div class="example">
<p><b>Example #1 Getting the timezonedb version</b></p>
<div class="example-contents programlisting">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB"><?php<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">timezone_version_get</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span>
</span>
</code></div>
</div>
<div class="example-contents para"><p>The above example will output
something similar to:</p></div>
<div class="example-contents screen">
<div class="cdata"><pre>
2009.7
</pre></div>
</div>
</div><p>
</p>
</div>
<a name="function.timezone-version-get.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="timezones.php" class="link">List of Supported Timezones</a></li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>