csli.util
Class CsliTime

java.lang.Object
  extended by java.util.Date
      extended by csli.util.CsliTime
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Date>

public class CsliTime
extends Date

The representation of time used for indexing in Calo.

Author:
niekrasz
See Also:
Serialized Form

Constructor Summary
CsliTime()
          Make a time which is right now.
CsliTime(Date date)
          Make a CaloTime from a Date.
CsliTime(Float time)
           
CsliTime(long time)
          Make a CaloTime which is like Date(long).
 
Method Summary
 String toConciseString()
          A concise ( <= 12 chars) string representation of the time.
 Float toFloat()
           
 String toString()
           
 String toVerboseString()
          A verbose string representation of the time.
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CsliTime

public CsliTime()
Make a time which is right now.


CsliTime

public CsliTime(Date date)
Make a CaloTime from a Date.

Parameters:
date -

CsliTime

public CsliTime(Float time)

CsliTime

public CsliTime(long time)
Make a CaloTime which is like Date(long).

Parameters:
time -
Method Detail

toConciseString

public String toConciseString()
A concise ( <= 12 chars) string representation of the time.

Returns:

toFloat

public Float toFloat()

toString

public String toString()
Overrides:
toString in class Date

toVerboseString

public String toVerboseString()
A verbose string representation of the time.

Returns: