Package adams.core
Class DateTimeMsec
- java.lang.Object
-
- java.util.Date
-
- adams.core.DateTimeMsec
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Date>
public class DateTimeMsec extends Date
A thin wrapper to distinguish between date/teim and date/time msec.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateTimeMsec()
Default constructor.DateTimeMsec(long date)
Initializes the date/time with the given msecs.DateTimeMsec(Date date)
Initializes the date/time with the given date.
-
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
-
DateTimeMsec
public DateTimeMsec()
Default constructor.
-
DateTimeMsec
public DateTimeMsec(long date)
Initializes the date/time with the given msecs.- Parameters:
date
- the msecs since 1970
-
DateTimeMsec
public DateTimeMsec(Date date)
Initializes the date/time with the given date.- Parameters:
date
- the Java date
-
-