|
||||||||||
| 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 | |
|---|---|
String |
format(Date theDate)
Formats the given date as a String using the default date format. |
String |
format(Date theDate,
String dateFormatString)
Formats the given date as a String. |
void |
init(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(Object data)
init in interface ApplicationTooldata - initialization datapublic void refresh()
refresh in interface ApplicationToolpublic String format(Date theDate)
theDate - date to format
public String format(Date theDate,
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 | |||||||||