org.norther.tammi.acorn.lang
Class LongTime

java.lang.Object
  extended by java.lang.Number
      extended by org.norther.tammi.acorn.lang.LongDate
          extended by org.norther.tammi.acorn.lang.LongTime
All Implemented Interfaces:
Serializable

public class LongTime
extends LongDate

A number represeting a modifiable timestamp as a number of milliseconds.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
LongTime(Date date)
          Constructs a new timestamp with java.util.Date.
LongTime(long msecs)
          Constructs a new timestamp with msecs.
 
Method Summary
 long getTimestamp()
          Gets the timestamp.
 void setTimestamp(long msecs)
          Sets the timestamp.
 
Methods inherited from class org.norther.tammi.acorn.lang.LongDate
doubleValue, floatValue, intValue, 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

LongTime

public LongTime(long msecs)
Constructs a new timestamp with msecs.

Parameters:
msecs - the initial timestamp.

LongTime

public LongTime(Date date)
Constructs a new timestamp with java.util.Date.

Parameters:
date - the initial date.
Method Detail

getTimestamp

public long getTimestamp()
Gets the timestamp.

Returns:
the timestamp.

setTimestamp

public void setTimestamp(long msecs)
Sets the timestamp.

Parameters:
msecs - the timestamp.


Copyright © 2004 The Norther Organization. All rights reserved.