org.norther.tammi.acorn.lang
Class LongDate
java.lang.Object
java.lang.Number
org.norther.tammi.acorn.lang.LongDate
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- LongTime
public class LongDate
- extends Number
A number representing a date as a number of milliseconds.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
|
Constructor Summary |
LongDate(Date date)
Constructs a new date with java.util.Date. |
LongDate(long msecs)
Constructs a new date with msecs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongDate
public LongDate(long msecs)
- Constructs a new date with msecs.
- Parameters:
msecs - the milliseconds.
LongDate
public LongDate(Date date)
- Constructs a new date with
java.util.Date.
- Parameters:
date - the date.
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class Number
floatValue
public float floatValue()
- Specified by:
floatValue in class Number
intValue
public int intValue()
- Specified by:
intValue in class Number
longValue
public long longValue()
- Specified by:
longValue in class Number
Copyright © 2004 The Norther Organization. All rights reserved.