|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.util.TimeFormatter
public class TimeFormatter
This class does date formatting using the same format strings accepted by the strftime(3) UNIX call. This class has static methods only.
Constructor Summary | |
---|---|
TimeFormatter()
|
Method Summary | |
---|---|
static java.lang.String |
format(java.util.Date date,
java.lang.String format)
Format the given date as a string, according to the given format string. |
static void |
main(java.lang.String[] args)
For testing purposes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeFormatter()
Method Detail |
---|
public static java.lang.String format(java.util.Date date, java.lang.String format)
date
- The date to formatformat
- The formatting string
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |