Java Calendar Minute setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis)

Here you can find the source of setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis)

Description

set Calendar Time

Declaration

public static Calendar setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis) 

Method Source Code


//package com.java2s;
import java.util.Calendar;

public class Main {

    public static Calendar setCalendarTime(Calendar calendar, int hour, int minute, int second, int millis) {
        calendar.set(Calendar.HOUR_OF_DAY, hour);
        calendar.set(Calendar.MINUTE, minute);
        calendar.set(Calendar.SECOND, second);
        calendar.set(Calendar.MILLISECOND, millis);
        return calendar;
    }//from   w  w  w  .  j  a  v  a  2s.c  o  m
}

Related

  1. getOffsetInMinutes(Calendar cal)
  2. isNow(Calendar cal, Locale locale, boolean minuteCheck)
  3. minuteFloor(Calendar calendar)
  4. roundByMinutes(Calendar cal, int interval)
  5. setCalendarHourMinSec(final Calendar originalCalendar, final int hourOfDay, final int minute, final int second)
  6. setMinutes(int i, Calendar calendar)
  7. setTime(Calendar calendar, int hourOfDay, int minute, int second, int millisecond)
  8. setToTime(Calendar calendar, int hours, int minutes)