Here you can find the source of createCalendarWith()
public static Calendar createCalendarWith()
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.TimeZone; public class Main { private final static TimeZone tz = TimeZone.getTimeZone("Europe/Vienna"); public static Calendar createCalendarWith() { final Calendar cal = Calendar.getInstance(tz); return cal; }/*from w w w . j a v a 2s . c o m*/ public static Calendar createCalendarWith(int y, int mo, int d, int h, int min, int s) { final Calendar cal = Calendar.getInstance(tz); cal.set(Calendar.YEAR, y); cal.set(Calendar.MONTH, mo); cal.set(Calendar.DAY_OF_MONTH, d); cal.set(Calendar.HOUR_OF_DAY, h); cal.set(Calendar.MINUTE, min); cal.set(Calendar.SECOND, s); cal.set(Calendar.MILLISECOND, 0); return cal; } }