Package adams.core
Class DateTime
- java.lang.Object
-
- java.util.Date
-
- adams.core.DateTime
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Date>
public class DateTime extends Date
A thin wrapper to distinguish between date and date/time.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class java.util.Date
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, toString, UTC
-
-
-
-
Constructor Detail
-
DateTime
public DateTime()
Default constructor.
-
DateTime
public DateTime(long date)
Initializes the date/time with the given msecs.- Parameters:
date
- the msecs since 1970
-
DateTime
public DateTime(Date date)
Initializes the date/time with the given date.- Parameters:
date
- the Java date
-
-