Android Calendar Get getMinTimeMillisToday(final Calendar calendar)

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

Description

get Min Time Millis Today

Declaration

public static long getMinTimeMillisToday(final Calendar calendar) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static long getMinTimeMillisToday(final Calendar calendar) {
        Calendar startTotalCalendar = calendar;
        if (startTotalCalendar == null) {
            startTotalCalendar = Calendar.getInstance();
        }/*from w w w . ja v a 2 s.  c  om*/
        startTotalCalendar.set(Calendar.HOUR_OF_DAY, 0);
        startTotalCalendar.set(Calendar.MINUTE, 0);
        startTotalCalendar.set(Calendar.SECOND, 0);
        return startTotalCalendar.getTimeInMillis();
    }

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

Related

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