All Packages Class Hierarchy This Package Previous Next Index
Class w3c.util.TimeFormatter
java.lang.Object
|
+----w3c.util.TimeFormatter
- public class TimeFormatter
- extends Object
This class does date formatting using the same format strings accepted by the
strftime(3) UNIX call. This class has static methods only.
-
TimeFormatter()
-
-
format(Date, String)
- Format the given date as a string, according to the given
format string.
-
main(String[])
- For testing purposes
TimeFormatter
public TimeFormatter()
format
public static String format(Date date,
String format)
- Format the given date as a string, according to the given
format string.
The format string is of the form used by the strftime(3) UNIX
call.
- Parameters:
- date - The date to format
- format - The formatting string
- Returns:
- the String with the formatted date.
main
public static void main(String args[])
- For testing purposes
All Packages Class Hierarchy This Package Previous Next Index