Package adams.core
Class TimeMsec
- java.lang.Object
-
- java.util.Date
-
- adams.core.TimeMsec
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Date>
public class TimeMsec extends Date
A thin wrapper to distinguish between date and time/msec.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
toDate()
Returns the time object as date object.Time
toSql()
Returns the time object as SQL time object.-
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
-
TimeMsec
public TimeMsec()
Default constructor.
-
TimeMsec
public TimeMsec(long date)
Initializes the time with the given msecs.- Parameters:
date
- the msecs since 1970
-
TimeMsec
public TimeMsec(Date date)
Initializes the time with the given date.- Parameters:
date
- the Java date
-
-