net.fortuna.mstor.util
Class MetaDateFormat
java.lang.Object
net.fortuna.mstor.util.MetaDateFormat
public final class MetaDateFormat
- extends Object
Defines a date format used in metadata.
- Author:
- benfortuna
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static MetaDateFormat getInstance()
- Returns:
- Returns the instance.
format
public String format(Date date)
- Parameters:
date
- a date to format
- Returns:
- a string representation of the specified date
parse
public Date parse(String string)
throws ParseException
- Parameters:
string
- a string representation of a date
- Returns:
- a date parsed from the specified string representation
- Throws:
ParseException
- thrown when the specified string
is not a valid representation of a date