/** * Creates a new CalendarInstance in the UTC time zone for the given time settings. * * @param year * the year * @param month * the month (starting with index 1 (this is not like the * {@link Calendar#set(int, int, int, int, int, int)} method). * @param dayofMonth * the day of month. * @param hour * the hour. * @param min * the min. * @param sec * the sec. * @param milli * the milli. * @return a new calendar. */ public static Calendar createUTCCalendar(final int year, final int month, final int dayofMonth, final int hour, final int min, final int sec, final int milli) { return createCalendar(TimeZone.getTimeZone("UTC"), year, month, dayofMonth, hour, min, sec, milli); }
toInt(chk(m.group(10), "0"))); return createCalendar(zone, toInt(chk(m.group(1), "0")), toInt(chk(m.group(2), "0")),