Android Calendar Get getMaxTimeMillisToday(final Calendar calendar)

Here you can find the source of getMaxTimeMillisToday(final Calendar calendar)

Description

get Max Time Millis Today

Declaration

public static long getMaxTimeMillisToday(final Calendar calendar) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static long getMaxTimeMillisToday(final Calendar calendar) {
        Calendar endTotalCalendar = calendar;
        if (endTotalCalendar == null) {
            endTotalCalendar = Calendar.getInstance();
        }/*w w  w.ja v  a 2  s. c o m*/
        endTotalCalendar.set(Calendar.HOUR_OF_DAY, 23);
        endTotalCalendar.set(Calendar.MINUTE, 59);
        endTotalCalendar.set(Calendar.SECOND, 59);
        return endTotalCalendar.getTimeInMillis();
    }

    public static long getMaxTimeMillisToday() {
        return getMaxTimeMillisToday(Calendar.getInstance());
    }
}

Related

  1. getFragmentInHours(Calendar calendar, int fragment)
  2. getGuessedDateString()
  3. getHour(Calendar c)
  4. getLastOfWeek(Calendar cal, int week)
  5. getMaxTimeMillisToday()
  6. getMinTimeMillisToday()
  7. getMinTimeMillisToday(final Calendar calendar)
  8. getMinTimeMillisWeek()
  9. getMinute()