Home » MySQL-JDBC-5.1.11 » com.mysql.jdbc » [javadoc | source]
com.mysql.jdbc
public class: TimeUtil [javadoc | source]
java.lang.Object
   com.mysql.jdbc.TimeUtil
Timezone conversion routines
Field Summary
static final  Map ABBREVIATED_TIMEZONES     
static final  TimeZone GMT_TIMEZONE     
static final  Map TIMEZONE_MAPPINGS     
Method from com.mysql.jdbc.TimeUtil Summary:
changeTimezone,   changeTimezone,   fastDateCreate,   fastDateCreate,   fastTimeCreate,   fastTimeCreate,   fastTimestampCreate,   fastTimestampCreate,   getCanoncialTimezone
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.mysql.jdbc.TimeUtil Detail:
 public static Time changeTimezone(ConnectionImpl conn,
    Calendar sessionCalendar,
    Calendar targetCalendar,
    Time t,
    TimeZone fromTz,
    TimeZone toTz,
    boolean rollForward) 
    Change the given times from one timezone to another
 public static Timestamp changeTimezone(ConnectionImpl conn,
    Calendar sessionCalendar,
    Calendar targetCalendar,
    Timestamp tstamp,
    TimeZone fromTz,
    TimeZone toTz,
    boolean rollForward) 
    Change the given timestamp from one timezone to another
 static final Date fastDateCreate(int year,
    int month,
    int day,
    Calendar targetCalendar) 
 static final Date fastDateCreate(boolean useGmtConversion,
    Calendar gmtCalIfNeeded,
    Calendar cal,
    int year,
    int month,
    int day) 
 static final Time fastTimeCreate(Calendar cal,
    int hour,
    int minute,
    int second,
    ExceptionInterceptor exceptionInterceptor) throws SQLException 
 static final Time fastTimeCreate(int hour,
    int minute,
    int second,
    Calendar targetCalendar,
    ExceptionInterceptor exceptionInterceptor) throws SQLException 
 static final Timestamp fastTimestampCreate(TimeZone tz,
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int seconds,
    int secondsPart) 
 static final Timestamp fastTimestampCreate(boolean useGmtConversion,
    Calendar gmtCalIfNeeded,
    Calendar cal,
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int seconds,
    int secondsPart) 
 public static String getCanoncialTimezone(String timezoneStr,
    ExceptionInterceptor exceptionInterceptor) throws SQLException 
    Returns the 'official' Java timezone name for the given timezone