|
MySQL Connector/J size='-1'>5.0.8 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.TimeUtil
Timezone conversion routines
Constructor Summary | |
TimeUtil()
|
Method Summary | |
static java.sql.Timestamp |
changeTimezone(Connection conn,
java.util.Calendar sessionCalendar,
java.util.Calendar targetCalendar,
java.sql.Timestamp tstamp,
java.util.TimeZone fromTz,
java.util.TimeZone toTz,
boolean rollForward)
Change the given timestamp from one timezone to another |
static java.sql.Time |
changeTimezone(Connection conn,
java.util.Calendar sessionCalendar,
java.util.Calendar targetCalendar,
java.sql.Time t,
java.util.TimeZone fromTz,
java.util.TimeZone toTz,
boolean rollForward)
Change the given times from one timezone to another |
static java.lang.String |
getCanoncialTimezone(java.lang.String timezoneStr)
Returns the 'official' Java timezone name for the given timezone |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeUtil()
Method Detail |
public static java.sql.Time changeTimezone(Connection conn, java.util.Calendar sessionCalendar, java.util.Calendar targetCalendar, java.sql.Time t, java.util.TimeZone fromTz, java.util.TimeZone toTz, boolean rollForward)
conn
- the current connection to the MySQL servert
- the times to changefromTz
- the timezone to change fromtoTz
- the timezone to change to
public static java.sql.Timestamp changeTimezone(Connection conn, java.util.Calendar sessionCalendar, java.util.Calendar targetCalendar, java.sql.Timestamp tstamp, java.util.TimeZone fromTz, java.util.TimeZone toTz, boolean rollForward)
conn
- the current connection to the MySQL servertstamp
- the timestamp to changefromTz
- the timezone to change fromtoTz
- the timezone to change to
public static java.lang.String getCanoncialTimezone(java.lang.String timezoneStr)
timezoneStr
- the 'common' timezone name
java.lang.IllegalArgumentException
- DOCUMENT ME!
|
MySQL Connector/J size='-1'>5.0.8 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |