Java Day End setTimeToEndofDay(Calendar calendar)

Here you can find the source of setTimeToEndofDay(Calendar calendar)

Description

set Time To Endof Day

License

Apache License

Declaration

private static void setTimeToEndofDay(Calendar calendar) 

Method Source Code


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

import java.util.*;

public class Main {
    private static void setTimeToEndofDay(Calendar calendar) {
        calendar.set(Calendar.HOUR_OF_DAY, 23);
        calendar.set(Calendar.MINUTE, 59);
        calendar.set(Calendar.SECOND, 59);
        calendar.set(Calendar.MILLISECOND, 999);
    }/*w  ww .j  a v a 2  s .  c  om*/
}

Related

  1. previousWorkingDay(final Calendar calendar, final Long[] holidays)
  2. secondsBetween(Date start, Date end, boolean assumeSameDate, boolean assumeSameHour)
  3. secondsToEndOfDay(Date aDate)
  4. secondsToEndOfDay(Date aDate)
  5. setEndDay(Date date)
  6. setTimeToEndOfDay(Date date)
  7. subtractSecond(Date startDate, Date endDate)
  8. toDayEnds(Date date)
  9. toDayInterval(Date startDate, Date endDate)