jodd.datetime
Class TimeZoneUtil

java.lang.Object
  extended by jodd.datetime.TimeZoneUtil

public class TimeZoneUtil
extends java.lang.Object

Misc timezone utilities.


Constructor Summary
TimeZoneUtil()
           
 
Method Summary
static int getOffset(JDateTime jdt, java.util.TimeZone tz)
          Get offset difference in milliseconds for given jdatetime.
static int getOffsetDifference(JDateTime jdt, java.util.TimeZone from, java.util.TimeZone to)
           
static int getOffsetDifference(long now, java.util.TimeZone from, java.util.TimeZone to)
          Returns offset difference in milliseconds for given time.
static int getRawOffsetDifference(java.util.TimeZone from, java.util.TimeZone to)
          Returns raw offset difference in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeZoneUtil

public TimeZoneUtil()
Method Detail

getRawOffsetDifference

public static int getRawOffsetDifference(java.util.TimeZone from,
                                         java.util.TimeZone to)
Returns raw offset difference in milliseconds.


getOffsetDifference

public static int getOffsetDifference(long now,
                                      java.util.TimeZone from,
                                      java.util.TimeZone to)
Returns offset difference in milliseconds for given time.


getOffset

public static int getOffset(JDateTime jdt,
                            java.util.TimeZone tz)
Get offset difference in milliseconds for given jdatetime.


getOffsetDifference

public static int getOffsetDifference(JDateTime jdt,
                                      java.util.TimeZone from,
                                      java.util.TimeZone to)


Copyright © 2003-2012 Jodd Team