Browse Source

Documentation for new Locale option in <tstamp>

Submitted by:	Michal Pise <michal.pise@st.ms.mff.cuni.cz>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269429 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
e2ae69c528
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      docs/manual/CoreTasks/tstamp.html

+ 12
- 2
docs/manual/CoreTasks/tstamp.html View File

@@ -79,6 +79,16 @@ The format element also allows offsets to be applied to the time to generate dif
</td> </td>
<td align="center" valign="top">No</td> <td align="center" valign="top">No</td>
</tr> </tr>
<tr>
<td valign="top">locale</td>
<td valign="top">The locale used to create date/time string. The general
form is "language, country, variant" but either variant or variant and
country may be omitted. For more information please refer to documentation
for the
<a href="http://java.sun.com/j2se/1.3/docs/api/java/util/Locale.html">Locale</a>
class.</td>
<td align="center" valign="top">No</td>
</tr>
</table> </table>


<h3>Examples</h3> <h3>Examples</h3>
@@ -92,13 +102,13 @@ sets the standard <code>DSTAMP</code>, <code>TSTAMP</code>,
and <code>TODAY</code> properties according to the default formats.</p> and <code>TODAY</code> properties according to the default formats.</p>
<pre> <pre>
&lt;tstamp&gt; &lt;tstamp&gt;
&lt;format property=&quot;TODAY_UK&quot; pattern=&quot;d-MMMM-yyyy&quot;/&gt;
&lt;format property=&quot;TODAY_UK&quot; pattern=&quot;d-MMMM-yyyy&quot; locale=&quot;en&quot;/&gt;
&lt;/tstamp&gt; &lt;/tstamp&gt;
</pre> </pre>
<p> <p>
sets the standard properties as well as the property sets the standard properties as well as the property
<code>TODAY_UK</code> with the date/time pattern &quot;d-MMMM-yyyy&quot; <code>TODAY_UK</code> with the date/time pattern &quot;d-MMMM-yyyy&quot;
(eg., 21-May-2001).
using English locale (eg. 21-May-2001).


<pre> <pre>
&lt;tstamp&gt; &lt;tstamp&gt;


Loading…
Cancel
Save