2008-03-06 01:30:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:47:57 +00:00
|
|
|
<!-- $Revision$ -->
|
2008-05-05 23:55:00 +00:00
|
|
|
<section xml:id="intl.intldateformatter-constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2009-04-01 20:56:46 +00:00
|
|
|
&reftitle.constants;
|
2008-03-06 01:30:03 +00:00
|
|
|
|
2009-04-01 20:56:46 +00:00
|
|
|
<para>
|
|
|
|
These constants are used to specify different formats
|
|
|
|
in the constructor for DateType and TimeType.
|
2008-03-06 01:30:03 +00:00
|
|
|
<variablelist>
|
2009-04-01 20:56:46 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::NONE</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Do not include this element</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::FULL</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Completely specified style (Tuesday, April 12, 1952 AD or 3:30:42pm PST)</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::LONG</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Long style (January 12, 1952 or 3:30:32pm)</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::MEDIUM</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Medium style (Jan 12, 1952)</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::SHORT</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Most abbreviated style, only essential data (12/13/52 or 3:30pm)</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
2008-03-07 22:46:02 +00:00
|
|
|
|
2009-04-01 20:56:13 +00:00
|
|
|
<para xml:id="intl.intldateformatter-constants.calendartypes">
|
2008-03-07 22:46:02 +00:00
|
|
|
The following int constants are used to specify the calendar.
|
|
|
|
These calendars are all based directly on the Gregorian calendar.
|
|
|
|
Non-Gregorian calendars need to be specified in locale.
|
|
|
|
Examples might include locale="hi@calendar=BUDDHIST".
|
2009-04-01 20:56:46 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::TRADITIONAL</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Non-Gregorian Calendar</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>IntlDateFormatter::GREGORIAN</constant>
|
2010-10-11 20:01:31 +00:00
|
|
|
(<type>integer</type>)
|
2009-04-01 20:56:46 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>Gregorian Calendar</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2008-03-06 01:30:03 +00:00
|
|
|
</para>
|
2009-04-01 20:56:46 +00:00
|
|
|
</section>
|
2008-03-06 01:30:03 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2008-03-06 01:30:03 +00:00
|
|
|
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
|
|
|
|
-->
|
2009-04-01 20:56:13 +00:00
|
|
|
|