edu.sc.seis.fissuresUtil.chooser
Class ClockUtil

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.chooser.ClockUtil

public class ClockUtil
extends java.lang.Object

ClockUtil.java Created: Mon Mar 17 09:34:25 2003


Constructor Summary
ClockUtil()
           
 
Method Summary
static TimeInterval getServerTimeOffset()
           
static TimeInterval getTimeOffset()
          Calculates the difference between the CPU clock and the time retrieved from the http://www.seis.sc.edu/cgi-bin/date_time.pl.
static MicroSecondDate lastMonth()
           
static MicroSecondDate lastWeek()
           
static MicroSecondDate now()
          Creates a new MicroSecondDate that reflects the current time to the best ability of the system.
static MicroSecondDate tomorrow()
           
static MicroSecondDate wayFuture()
           
static MicroSecondDate wayPast()
           
static MicroSecondDate yesterday()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClockUtil

public ClockUtil()
Method Detail

getTimeOffset

public static TimeInterval getTimeOffset()
Calculates the difference between the CPU clock and the time retrieved from the http://www.seis.sc.edu/cgi-bin/date_time.pl.


now

public static MicroSecondDate now()
Creates a new MicroSecondDate that reflects the current time to the best ability of the system. If a connection to a remote server cannot be established, then the current CPU time is used.


tomorrow

public static MicroSecondDate tomorrow()

yesterday

public static MicroSecondDate yesterday()

lastWeek

public static MicroSecondDate lastWeek()

lastMonth

public static MicroSecondDate lastMonth()

wayPast

public static MicroSecondDate wayPast()

wayFuture

public static MicroSecondDate wayFuture()

getServerTimeOffset

public static TimeInterval getServerTimeOffset()
                                        throws java.io.IOException
Throws:
java.io.IOException