org.tranche.time
Class TimeUtil
java.lang.Object
org.tranche.time.TimeUtil
public final class TimeUtil
- extends java.lang.Object
Timekeeper for the repository. All parties need to be guaranteed to be working off the same timestamp.
- Author:
- James "Augie" Hill - augman85@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANCHE_TIMEZONE
public static final java.util.TimeZone TRANCHE_TIMEZONE
updateOffset
public static final void updateOffset()
getOffset
public static final long getOffset(java.lang.String address)
throws java.net.UnknownHostException,
java.io.IOException
- Parameters:
address -
- Returns:
-
- Throws:
java.net.UnknownHostException
java.io.IOException
getTrancheTimestamp
public static final long getTrancheTimestamp()
- Returns:
This code is free for use both commercially and non-commercially as stated in the project's license