org.tranche.time
Class TimeUtil

java.lang.Object
  extended by 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

Field Summary
static java.util.TimeZone TRANCHE_TIMEZONE
           
 
Method Summary
static long getOffset(java.lang.String address)
           
static long getTrancheTimestamp()
           
static void updateOffset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANCHE_TIMEZONE

public static final java.util.TimeZone TRANCHE_TIMEZONE
Method Detail

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