|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.vajhoej.record.TimeUtil
public class TimeUtil
Class TimeUtil converts between integers in various time formats and Date objects.
Constructor Summary | |
---|---|
TimeUtil()
|
Method Summary | |
---|---|
static java.util.Date |
fromJavaTime(long v)
Convert from long with Java time (milliseconds since 1-Jan-1970) to Date object. |
static java.util.Date |
fromUnixTime(int v)
Convert from int with Unix time (seconds since 1-Jan-1970) to Date object. |
static java.util.Date |
fromVMSTime(long v)
Convert from long with VMS time (100 nanoseconds since 17-Nov-1858) to Date object. |
static long |
toJavaTime(java.util.Date d)
Convert from Date object to long with Java time (milliseconds since 1-Jan-1970). |
static int |
toUnixTime(java.util.Date d)
Convert from Date object to int with Unix time (seconds since 1-Jan-1970). |
static long |
toVMSTime(java.util.Date d)
Convert from Date object to long with VMS time (100 nanoseconds since 17-Nov-1858). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeUtil()
Method Detail |
---|
public static java.util.Date fromJavaTime(long v)
v
- Java time
public static long toJavaTime(java.util.Date d)
d
- Date object
public static java.util.Date fromUnixTime(int v)
v
- Unix time
public static int toUnixTime(java.util.Date d)
d
- Date object
public static java.util.Date fromVMSTime(long v)
v
- VMS time
public static long toVMSTime(java.util.Date d)
d
- Date object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |