com doc/zh: add timezone_version_get(): reference/d atetime/functions/timezone-version-get.xml

From: Date: Sun, 07 Feb 2021 09:34:40 +0000
Subject: com doc/zh: add timezone_version_get(): reference/d atetime/functions/timezone-version-get.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-5961@lists.php.net to get a copy of this message
Commit: 5888baafc7f7e4eb726c186cee04c0d1394aad73 Author: 蒋文健 <jwjbjg@gmail.com> Fri, 5 Feb 2021 16:34:39 +0800 Committer: daijie <daijie@php.net> Sun, 7 Feb 2021 17:34:40 +0800 Parents: 8d1fddf6125e6bf352748a47da8b691f597bc37c Branches: master Link: http://git.php.net/?p=doc/zh.git;a=commitdiff;h=5888baafc7f7e4eb726c186cee04c0d1394aad73 Log: add timezone_version_get() Changed paths: A reference/datetime/functions/timezone-version-get.xml Diff: diff --git a/reference/datetime/functions/timezone-version-get.xml b/reference/datetime/functions/timezone-version-get.xml new file mode 100644 index 00000000..18fe2b28 --- /dev/null +++ b/reference/datetime/functions/timezone-version-get.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 14af302c9c0e561fa6f9cdd956268758ba9a89c5 Maintainer: Status: ready --> +<!-- Reviewed: no --> +<refentry xml:id="function.timezone-version-get" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>timezone_version_get</refname> + <refpurpose> + 获取 timezonedb 的版本 + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>timezone_version_get</methodname> + <void/> + </methodsynopsis> + <para> + 返回当前 timezonedb 的版本。 + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 返回一个 <type>string</type>。 + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>获取 timezonedb 版本</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo timezone_version_get(); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +2009.7 +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><link linkend="timezones">支持的时区列表</link></member> + </simplelist> + </para> + </refsect1> +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +-->

« previous php.doc.zh (#5961) next »