org.deegree.commons.types.datetime
Class Date
java.lang.Object
org.deegree.commons.types.datetime.Date
- All Implemented Interfaces:
- Comparable<Date>
public class Date
- extends Object
- implements Comparable<Date>
Represents an xs:date instance.
TODO: currently, syntax checking is performed by DateUtils.parseISO8601Date(String), which does not exactly
match the lexical space of the xs:date type.
Valid values include: 2001-10-26, 2001-10-26+02:00, 2001-10-26Z, 2001-10-26+00:00, -2001-10-26, or -20000-04-01.
- Version:
- $Revision: 22129 $, $Date: 2010-01-21 19:03:13 +0100 (Do, 21 Jan 2010) $
- Author:
- Markus Schneider, last edited by: $Author: mschneider $
Date
public Date(String isoDate)
throws ParseException
- Throws:
ParseException
getDate
public Date getDate()
compareTo
public int compareTo(Date o)
- Specified by:
compareTo in interface Comparable<Date>
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>