From e2ae69c5288e614c717a8224cc821cefc930e557 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Wed, 1 Aug 2001 11:22:18 +0000 Subject: [PATCH] Documentation for new Locale option in Submitted by: Michal Pise git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269429 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/tstamp.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/manual/CoreTasks/tstamp.html b/docs/manual/CoreTasks/tstamp.html index 115d2c5f0..bb98da671 100644 --- a/docs/manual/CoreTasks/tstamp.html +++ b/docs/manual/CoreTasks/tstamp.html @@ -79,6 +79,16 @@ The format element also allows offsets to be applied to the time to generate dif No + + locale + 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 + Locale + class. + No +

Examples

@@ -92,13 +102,13 @@ sets the standard DSTAMP, TSTAMP, and TODAY properties according to the default formats.

   <tstamp>
-    <format property="TODAY_UK" pattern="d-MMMM-yyyy"/>
+    <format property="TODAY_UK" pattern="d-MMMM-yyyy" locale="en"/>
   </tstamp>
 

sets the standard properties as well as the property TODAY_UK with the date/time pattern "d-MMMM-yyyy" -(eg., 21-May-2001). +using English locale (eg. 21-May-2001).

   <tstamp>