/** * Creates UTC Timezone with given hour , minute offset. * the minutes are always added to the absolute hour value, * but the sign of the hour value is used to calculate sign * of the offset. * * @param hour * the hour offset. * @param minutes * the minutes in the hour. * @return a UTC Timezone. */ public static TimeZone createUTCTimeZone(int hour, int minutes) { int offset = (hour < 0 ? -1 : 1) * (Math.abs(hour) * HOUR_IN_MILLI + minutes * MINUTE_IN_MILLI); return createUTCTimeZone(offset); }
createUTCTimeZone( (chk(m.group(8), "+").equals("+") ? 1 : -1) * toInt(chk(m.group(9), "0")),