edu.harvard.hul.ois.mets.helper
Class DateTime

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.DateTime

public class DateTime
extends java.lang.Object

Wrapper class to format date/time strings according to the xsd:dateTime format.


Constructor Summary
DateTime()
           
 
Method Summary
static java.lang.String format(java.util.Date date)
          Return string representation of date.
static java.util.Date parse(java.lang.String date)
          Return Date representation of string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTime

public DateTime()
Method Detail

format

public static java.lang.String format(java.util.Date date)
Return string representation of date.

Parameters:
date - Date

parse

public static java.util.Date parse(java.lang.String date)
                            throws java.text.ParseException
Return Date representation of string.

Parameters:
date - Date
Throws:
java.text.ParseException