You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by se...@apache.org on 2007/05/04 16:19:16 UTC
svn commit: r535251 -
/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/pull/util/DateFormatter.java
Author: seade
Date: Fri May 4 07:19:16 2007
New Revision: 535251
URL: http://svn.apache.org/viewvc?view=rev&rev=535251
Log:
Add a further date format variation.
Modified:
jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/pull/util/DateFormatter.java
Modified: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/pull/util/DateFormatter.java
URL: http://svn.apache.org/viewvc/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/pull/util/DateFormatter.java?view=diff&rev=535251&r1=535250&r2=535251
==============================================================================
--- jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/pull/util/DateFormatter.java (original)
+++ jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/java/org/apache/turbine/services/pull/util/DateFormatter.java Fri May 4 07:19:16 2007
@@ -113,4 +113,17 @@
return result;
}
+ /**
+ * Formats the given date as a String.
+ *
+ * @param theDate date to format
+ * @param dateFormatString format string to use. See
+ * java.text.SimpleDateFormat for details.
+ * @return String value of the date
+ */
+ public String format(long theDate, String dateFormatString)
+ {
+ return DateFormatUtils.format(theDate, dateFormatString);
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org