|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.util.UnixTimeConverter
public class UnixTimeConverter
Converts unix time to Date, and vise versa.
Nested Class Summary | |
---|---|
static class |
UnixTimeConverter.UnixTime
Unix time pair. |
Constructor Summary | |
---|---|
UnixTimeConverter()
|
Method Summary | |
---|---|
static UnixTimeConverter.UnixTime |
fromDateTimeToUnixTime(java.util.Date date)
Convert UTC DateTime to unix time |
static java.util.Date |
fromUnixTimeToDateTime(long seconds,
long usecs)
Convert unix time to Date (UTC) |
static java.util.Date |
fromUnixTimeToDateTime(UnixTimeConverter.UnixTime unixTime)
Convert unix time to Date (UTC) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnixTimeConverter()
Method Detail |
---|
public static java.util.Date fromUnixTimeToDateTime(long seconds, long usecs)
seconds
- number of seconds elapsed since midnight (00:00:00), January 1, 1970,
coordinated universal time (UTC)usecs
- microseconds component
public static java.util.Date fromUnixTimeToDateTime(UnixTimeConverter.UnixTime unixTime)
unixTime
- unix time pair
public static UnixTimeConverter.UnixTime fromDateTimeToUnixTime(java.util.Date date)
date
- Date value
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |