Android Calendar Get getMaxTimeMillisToday()

Here you can find the source of getMaxTimeMillisToday()

Description

get Max Time Millis Today

Declaration

public static long getMaxTimeMillisToday() 

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();
        }//from  w w w  . j  a  v a 2s  .  com
        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. getFragmentInDays(Calendar calendar, int fragment)
  2. getFragmentInHours(Calendar calendar, int fragment)
  3. getGuessedDateString()
  4. getHour(Calendar c)
  5. getLastOfWeek(Calendar cal, int week)
  6. getMaxTimeMillisToday(final Calendar calendar)
  7. getMinTimeMillisToday()
  8. getMinTimeMillisToday(final Calendar calendar)
  9. getMinTimeMillisWeek()