Java Calendar Year calendar(int year, int month, int date, int hourOfDay, int minute)

Here you can find the source of calendar(int year, int month, int date, int hourOfDay, int minute)

Description

calendar

License

Apache License

Declaration

private static Calendar calendar(int year, int month, int date,
            int hourOfDay, int minute) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    private static Calendar calendar(int year, int month, int date,
            int hourOfDay, int minute) {
        final Calendar cal = Calendar.getInstance();
        cal.setLenient(false);//from w  ww  . j  a v a  2  s. c om
        cal.clear();
        cal.set(year, month, date, hourOfDay, minute);
        return cal;
    }
}

Related

  1. calendarFor(final int year, final int month, final int day, final int hour, final int minute)
  2. calendarFor(int day, int month, int year)
  3. calendarOf(int year, int month, int day, int hour, int minute, int second, int millis)
  4. copyYearMonthDay(Calendar destCal, Calendar sourceCal)