|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.services.pull.util.DateFormatter
public class DateFormatter
This pull tool is used to format date objects into strings.
| Constructor Summary | |
|---|---|
DateFormatter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.util.Date theDate)
Formats the given date as a String using the default date format. |
java.lang.String |
format(java.util.Date theDate,
java.lang.String dateFormatString)
Formats the given date as a String. |
void |
init(java.lang.Object data)
Initialize the application tool. |
void |
refresh()
Refresh the application tool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateFormatter()
| Method Detail |
|---|
public void init(java.lang.Object data)
init in interface ApplicationTooldata - initialization datapublic void refresh()
refresh in interface ApplicationToolpublic java.lang.String format(java.util.Date theDate)
theDate - date to format
public java.lang.String format(java.util.Date theDate,
java.lang.String dateFormatString)
theDate - date to formatdateFormatString - format string to use. See java.text.SimpleDateFormat
for details.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||