|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.vlab.util.TimeZoneTools
public class TimeZoneTools
TimeZoneTools
class - set of util methods used to operate on time
zones.
Constructor Summary | |
---|---|
TimeZoneTools()
|
Method Summary | |
---|---|
java.util.Date |
adjustTime(java.util.Date time,
java.util.TimeZone baseTimeZone,
java.util.TimeZone currentTimeZone)
Adjust the given date object from the current time zone to the specified base time zone |
java.util.TimeZone |
getTimeZone(java.lang.String timeZone)
Parse the given time zone as a string |
int |
getTimeZoneOffset(java.util.TimeZone currentTimeZone,
java.util.TimeZone baseTimeZone)
Calculates the time offset between two timezones. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeZoneTools()
Method Detail |
---|
public int getTimeZoneOffset(java.util.TimeZone currentTimeZone, java.util.TimeZone baseTimeZone)
currentTimeZone
- first timezonebaseTimeZone
- second timezone
public java.util.Date adjustTime(java.util.Date time, java.util.TimeZone baseTimeZone, java.util.TimeZone currentTimeZone)
time
- date object to be convertedbaseTimeZone
- base time zonecurrentTimeZone
- current time zone
public java.util.TimeZone getTimeZone(java.lang.String timeZone)
timeZone
- time zone
|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |