org.norther.tammi.acorn.lang
Class LongDate

java.lang.Object
  extended by java.lang.Number
      extended by 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.
 
Method Summary
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.