Java Calendar Day dayStart(final Calendar cal)

Here you can find the source of dayStart(final Calendar cal)

Description

day Start

License

Open Source License

Declaration

private static Calendar dayStart(final Calendar cal) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    private static Calendar dayStart(final Calendar cal) {
        cal.get(Calendar.HOUR_OF_DAY); // force recalculation of internal fields
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        cal.get(Calendar.HOUR_OF_DAY); // force recalculation of internal fields
        return cal;
    }//  ww w  .jav  a  2  s  . c  om
}

Related

  1. dayMarkToCalendar(int day)
  2. dayPrecision(Calendar calendar)
  3. daysFromBinStart(Calendar date)
  4. daysSinceTheJesus(Calendar cal)
  5. dayStart(Calendar date)
  6. decreaseByDay(final Calendar calendar)
  7. endOfDay(Calendar calendar)
  8. getAge(Calendar dateOfBirth, Calendar onThisDay)
  9. getBeginDay(Calendar cal)