edu.sc.seis.fissuresUtil.chooser
Class ClockUtil
java.lang.Object
edu.sc.seis.fissuresUtil.chooser.ClockUtil
public class ClockUtil
- extends java.lang.Object
ClockUtil.java Created: Mon Mar 17 09:34:25 2003
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClockUtil
public ClockUtil()
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