Here you can find the source of getCalendar(TimeZone timeZone, Locale locale)
public static Calendar getCalendar(TimeZone timeZone, Locale locale)
//package com.java2s; /*!// w w w . jav a 2s .c om * mifmi-commons4j * https://github.com/mifmi/mifmi-commons4j * * Copyright (c) 2015 mifmi.org and other contributors * Released under the MIT license * https://opensource.org/licenses/MIT */ import java.util.Calendar; import java.util.Locale; import java.util.TimeZone; public class Main { public static Calendar getCalendar(TimeZone timeZone, Locale locale) { Calendar cal; if (timeZone == null) { if (locale == null) { cal = Calendar.getInstance(); } else { cal = Calendar.getInstance(locale); } } else { if (locale == null) { cal = Calendar.getInstance(timeZone); } else { cal = Calendar.getInstance(timeZone, locale); } } return cal; } }