Java Calendar Create getCalendar(long millis)

Here you can find the source of getCalendar(long millis)

Description

get Calendar

License

Apache License

Declaration

public static Calendar getCalendar(long millis) 

Method Source Code

//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;
    }
}

Related

  1. getCalendar(int year, int month, int day, int hour, int min, int sec, String timezone)
  2. getCalendar(int year, int month, int day, int hour, int mins, int secs)
  3. getCalendar(int year, int month, int day, int hours, int minutes, int seconds, TimeZone tz)
  4. getCalendar(int year, int month, int day, TimeZone timeZone)
  5. getCalendar(long millis)
  6. getCalendar(long time)
  7. getCalendar(long timeInMillis)
  8. getCalendar(long timeInMillis)
  9. getCalendar(String date)