public class TimeUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeUtil.Validator |
| Modifier and Type | Field and Description |
|---|---|
static long |
TT_JANUARY_1_1970 |
| Constructor and Description |
|---|
TimeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getOffset(long l) |
static double |
milliSecondSince1970(java.util.Date d)
converts a Date to number of milliseconds since 1970 (corrected for
leap seconds
|
static long |
milliSecondSince1970(int[] time)
returns number of milliseconds since 1970 for given time ignoring
leap seconds
|
static double |
milliSecondSince1970(long javaMilliSecond)
corrects (java Date returned) number of milliseconds since 1970 for
leap seconds
|
static long |
tt2000(java.util.Date d)
returns tt2000 for a Date
|
static long |
tt2000(int[] time)
returns tt2000 for the given time
|
static long |
tt2000(long l)
returns tt2000 for
(java Date returned) number of milliseconds since 1970
|
public static final long TT_JANUARY_1_1970
public static double getOffset(long l)
throws java.lang.Throwable
java.lang.Throwablepublic static double milliSecondSince1970(java.util.Date d)
throws java.lang.Throwable
java.lang.Throwablepublic static double milliSecondSince1970(long javaMilliSecond)
throws java.lang.Throwable
java.lang.Throwablepublic static long tt2000(long l)
throws java.lang.Throwable
java.lang.Throwablepublic static long tt2000(java.util.Date d)
throws java.lang.Throwable
java.lang.Throwablepublic static long milliSecondSince1970(int[] time)
throws java.lang.Throwable
java.lang.Throwablepublic static long tt2000(int[] time)
throws java.lang.Throwable
java.lang.Throwable