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.


Constructor Index

 o TimeFormatter()

Method Index

 o format(Date, String)
Format the given date as a string, according to the given format string.
 o main(String[])
For testing purposes

Constructors

 o TimeFormatter
 public TimeFormatter()

Methods

 o 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.
 o main
 public static void main(String args[])
For testing purposes


All Packages  Class Hierarchy  This Package  Previous  Next  Index