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
Method Summary |
static edu.iris.Fissures.model.TimeInterval |
getServerTimeOffset()
|
static edu.iris.Fissures.model.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 edu.iris.Fissures.model.MicroSecondDate |
lastMonth()
|
static edu.iris.Fissures.model.MicroSecondDate |
lastWeek()
|
static edu.iris.Fissures.model.MicroSecondDate |
now()
Creates a new MicroSecondDate that reflects the current time to the best
ability of the system. |
static edu.iris.Fissures.model.MicroSecondDate |
tomorrow()
|
static edu.iris.Fissures.model.MicroSecondDate |
wayFuture()
|
static edu.iris.Fissures.model.MicroSecondDate |
wayPast()
|
static edu.iris.Fissures.model.MicroSecondDate |
yesterday()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClockUtil
public ClockUtil()
getTimeOffset
public static edu.iris.Fissures.model.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 edu.iris.Fissures.model.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 edu.iris.Fissures.model.MicroSecondDate tomorrow()
yesterday
public static edu.iris.Fissures.model.MicroSecondDate yesterday()
lastWeek
public static edu.iris.Fissures.model.MicroSecondDate lastWeek()
lastMonth
public static edu.iris.Fissures.model.MicroSecondDate lastMonth()
wayPast
public static edu.iris.Fissures.model.MicroSecondDate wayPast()
wayFuture
public static edu.iris.Fissures.model.MicroSecondDate wayFuture()
getServerTimeOffset
public static edu.iris.Fissures.model.TimeInterval getServerTimeOffset()
throws java.io.IOException
- Throws:
java.io.IOException