public class ClockUtil
extends java.lang.Object
Constructor and Description |
---|
ClockUtil() |
Modifier and Type | Method and Description |
---|---|
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() |
public static TimeInterval getTimeOffset()
public static MicroSecondDate now()
public static MicroSecondDate tomorrow()
public static MicroSecondDate yesterday()
public static MicroSecondDate lastWeek()
public static MicroSecondDate lastMonth()
public static MicroSecondDate wayPast()
public static MicroSecondDate wayFuture()
public static TimeInterval getServerTimeOffset() throws java.io.IOException
java.io.IOException