Java Hour getHourByZore(int hour)

Here you can find the source of getHourByZore(int hour)

Description

get Hour By Zore

License

Open Source License

Declaration

public static Calendar getHourByZore(int hour) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static Calendar getHourByZore(int hour) {
        Calendar c = Calendar.getInstance();
        c.add(Calendar.DAY_OF_MONTH, 0);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.HOUR_OF_DAY, hour);
        return c;
    }//from ww  w  . ja  va  2 s  .  c  o  m
}

Related

  1. getHourAfter(Date date, int hour)
  2. getHourAfter(final Date _from, final int _hours)
  3. getHourAndMin(long time)
  4. getHourAndMinutes(Date dt)
  5. getHourBeforeTime(int hour)
  6. getHourDetails(int timeInfo)
  7. getHourFormatedTwoDigit()
  8. getHourFromDate(Date date)
  9. getHourInt()