| java.lang.Object com.mysql.jdbc.TimeUtil
TimeUtil | public class TimeUtil (Code) | | Timezone conversion routines
author: Mark Matthews |
Method Summary | |
public static Time | changeTimezone(ConnectionImpl conn, Calendar sessionCalendar, Calendar targetCalendar, Time t, TimeZone fromTz, TimeZone toTz, boolean rollForward) | public static Timestamp | changeTimezone(ConnectionImpl conn, Calendar sessionCalendar, Calendar targetCalendar, Timestamp tstamp, TimeZone fromTz, TimeZone toTz, boolean rollForward) | final static Date | fastDateCreate(boolean useGmtConversion, Calendar gmtCalIfNeeded, Calendar cal, int year, int month, int day) | final static Time | fastTimeCreate(Calendar cal, int hour, int minute, int second) | final static 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) |
ABBREVIATED_TIMEZONES | final static Map ABBREVIATED_TIMEZONES(Code) | | |
TIMEZONE_MAPPINGS | final static Map TIMEZONE_MAPPINGS(Code) | | |
changeTimezone | public static Time changeTimezone(ConnectionImpl conn, Calendar sessionCalendar, Calendar targetCalendar, Time t, TimeZone fromTz, TimeZone toTz, boolean rollForward)(Code) | | Change the given times from one timezone to another
Parameters: conn - the current connection to the MySQL server Parameters: t - the times to change Parameters: fromTz - the timezone to change from Parameters: toTz - the timezone to change to the times changed to the timezone 'toTz' |
changeTimezone | public static Timestamp changeTimezone(ConnectionImpl conn, Calendar sessionCalendar, Calendar targetCalendar, Timestamp tstamp, TimeZone fromTz, TimeZone toTz, boolean rollForward)(Code) | | Change the given timestamp from one timezone to another
Parameters: conn - the current connection to the MySQL server Parameters: tstamp - the timestamp to change Parameters: fromTz - the timezone to change from Parameters: toTz - the timezone to change to the timestamp changed to the timezone 'toTz' |
fastDateCreate | final static Date fastDateCreate(boolean useGmtConversion, Calendar gmtCalIfNeeded, Calendar cal, int year, int month, int day)(Code) | | |
fastTimestampCreate | final static Timestamp fastTimestampCreate(boolean useGmtConversion, Calendar gmtCalIfNeeded, Calendar cal, int year, int month, int day, int hour, int minute, int seconds, int secondsPart)(Code) | | |
getCanoncialTimezone | public static String getCanoncialTimezone(String timezoneStr)(Code) | | Returns the 'official' Java timezone name for the given timezone
Parameters: timezoneStr - the 'common' timezone name the Java timezone name for the given timezone throws: IllegalArgumentException - DOCUMENT ME! |
|
|