Here you can find the source of unixToCalendar(long unixTime)
public static Calendar unixToCalendar(long unixTime)
//package com.java2s; //License from project: LGPL import java.util.Calendar; public class Main { /**//ww w .j a v a 2 s . c o m * Converts Unix time to Calendar instance. * @return calendar object */ public static Calendar unixToCalendar(long unixTime) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(unixTime); return calendar; } }