org.nodal.util
Class TimestampImpl

java.lang.Object
  extended byorg.nodal.util.TimestampImpl
All Implemented Interfaces:
java.lang.Comparable, Timestamp

public class TimestampImpl
extends java.lang.Object
implements Timestamp


Constructor Summary
TimestampImpl()
           
TimestampImpl(java.lang.String s)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 Duration difference(Timestamp other)
           
 double secondsFromEpoch()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimestampImpl

public TimestampImpl()

TimestampImpl

public TimestampImpl(java.lang.String s)
              throws java.text.ParseException
Method Detail

toString

public java.lang.String toString()

difference

public Duration difference(Timestamp other)
Specified by:
difference in interface Timestamp

secondsFromEpoch

public double secondsFromEpoch()
Specified by:
secondsFromEpoch in interface Timestamp

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable