Android Calendar Get getMinTimeMillisToday()

Here you can find the source of getMinTimeMillisToday()

Description

get Min Time Millis Today

Declaration

public static long getMinTimeMillisToday() 

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 ww.j  ava  2  s .c  o  m*/
        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. getGuessedDateString()
  2. getHour(Calendar c)
  3. getLastOfWeek(Calendar cal, int week)
  4. getMaxTimeMillisToday()
  5. getMaxTimeMillisToday(final Calendar calendar)
  6. getMinTimeMillisToday(final Calendar calendar)
  7. getMinTimeMillisWeek()
  8. getMinute()
  9. getMinute(Calendar c)