Here you can find the source of getCalendar()
public static Calendar getCalendar()
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; import java.util.Locale; public class Main { public static final Locale LOCALE_DEFAULT = Locale.getDefault(); public static Calendar getCalendar() { return Calendar.getInstance(); }// w w w.j ava2s . c om public static Calendar getCalendar(Date datetime) { return getCalendar(datetime, LOCALE_DEFAULT); } public static Calendar getCalendar(Date datetime, Locale locale) { Calendar cal = Calendar.getInstance(locale); cal.setTime(datetime); return cal; } }