intldateformatter.create.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 229 行 · 第 1/2 页
HTML
229 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Create a date formatter</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.intldateformatter.html">IntlDateFormatter</a></div> <div class="next" style="text-align: right; float: right;"><a href="intldateformatter.format.html">IntlDateFormatter::format</a></div> <div class="up"><a href="class.intldateformatter.html">IntlDateFormatter</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="intldateformatter.create" class="refentry"> <div class="refnamediv"> <h1 class="refname">IntlDateFormatter::create</h1> <h1 class="refname">datefmt_create</h1> <h1 class="refname">IntlDateFormatter::__construct</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">IntlDateFormatter::create</span> -- <span class="refname">datefmt_create</span> -- <span class="refname">IntlDateFormatter::__construct</span> — <span class="dc-title">Create a date formatter</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <p class="para"> Object oriented style </p> <div class="methodsynopsis dc-description"> <span class="modifier">static</span> <span class="type"><a href="class.intldateformatter.html" class="type IntlDateFormatter">IntlDateFormatter</a></span> <span class="methodname"><b><b>IntlDateFormatter::create</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$locale</tt></span> , <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$datetype</tt></span> , <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$timetype</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$timezone</tt></span> [, <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$calendar</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$pattern</tt></span> ]]] )</div> <p class="para rdfs-comment"> Object oriented style (constructor) </p> <div class="constructorsynopsis dc-description"> <span class="methodname"><b><b>IntlDateFormatter::__construct</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$locale</tt></span> , <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$datetype</tt></span> , <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$timetype</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$timezone</tt></span> [, <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$calendar</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$pattern</tt></span> ]]] )</div> <p class="para rdfs-comment"> Procedural style </p> <div class="methodsynopsis dc-description"> <span class="type"><a href="class.intldateformatter.html" class="type IntlDateFormatter">IntlDateFormatter</a></span> <span class="methodname"><b><b>datefmt_create</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$locale</tt></span> , <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$datetype</tt></span> , <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$timetype</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$timezone</tt></span> [, <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$calendar</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$pattern</tt></span> ]]] )</div> <p class="para rdfs-comment"> Create a date formatter </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">locale</tt></i></span> <dd> <p class="para"> Locale to use when formatting or parsing. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">datetype</tt></i></span> <dd> <p class="para"> Date type to use (none, short, medium, long, full). This is one of the <a href="class.intldateformatter.html#intl.intldateformatter-constants" class="link">IntlDateFormatter constants</a>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">timetype</tt></i></span> <dd> <p class="para"> Time type to use (none, short, medium, long, full). This is one of the <a href="class.intldateformatter.html#intl.intldateformatter-constants" class="link">IntlDateFormatter constants</a>. </p> </dd>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?