Here you can find the source of getCalendar(long millis)
public static Calendar getCalendar(long millis)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Calendar getCalendar() { return Calendar.getInstance(); }//from ww w. ja va 2 s . c o m public static Calendar getCalendar(long millis) { Calendar cal = Calendar.getInstance(); cal.setTime(new Date(millis)); return cal; } }