Java Calendar Create createCalendar()

Here you can find the source of createCalendar()

Description

create Calendar

License

Apache License

Declaration

public static Calendar createCalendar() 

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 createCalendar() {
        return Calendar.getInstance();
    }/*from  w w  w .java2  s  .  com*/

    public static Calendar createCalendar(Date date) {
        Calendar calendar = createCalendar();
        calendar.setTime(date);
        return calendar;
    }
}

Related

  1. createCalendar()
  2. createCalendar()
  3. createCalendar()
  4. createCalendar()
  5. createCalendar(Date date)
  6. createCalendar(final int year, final int month, final int day)
  7. createCalendar(final int year, final int month, final int day, final int hour, final int minute, final int second)